Facebook Profile is not getting updated for different users through Singly API

77 views
Skip to first unread message

Janardhan Pasumarthi

unread,
Jan 6, 2013, 11:52:04 PM1/6/13
to sing...@googlegroups.com
Hi All,

   I'm using Singly PHP api to get the user profile data using facebook, when user logs into my application using facebook. Here, i'm facing problem with profile data that is coming from SinglyAuthentication. If i've logged in with somethin...@gmail.com for the first time, then it is giving proper data. But, if i log in with another email id, then also it is giving the same data that was given to previous one. I've tried destroying session, but not able to solve this.

Please suggest me solution for this.


Thanks

Justin Parker

unread,
Jan 7, 2013, 12:30:04 PM1/7/13
to sing...@googlegroups.com
Hi Janardhan,

Are you using this library? https://github.com/Singly/singly-php

There are a few things that could be the issue. One possibility is that your 2 facebook profiles were connected together instead of logging into a second facebook profile. 

Can you print out the $access_token from your php application and see if there is more than listed when you visit https://api.singly.com/profiles?access_token=[your access token here] to confirm?

If that is the case, you need to make sure you are using the authentication flow documented on https://singly.com/docs/authorization, specifically the logic of whether to apply an access token to /oauth/authenticate.

Once that is fixed (it should be correct if you use our library). You will need to create a new Singly app and use that in order to reset the connection of the accounts.

I'd be happy to answer any other questions.

Justin

Janardhan Pasumarthi

unread,
Jan 8, 2013, 12:07:56 AM1/8/13
to sing...@googlegroups.com
Hi Justin,

   Thanks for the reply. I'm using this library.. https://github.com/kinlane/singly-social-authentication-php 
and i've checked , https://api.singly.com/profiles?access_token=my access token. Yes it is containing more than 1 facebook profiles are together. But, i've followed all the steps mentioned properly in https://singly.com/docs/authorization. But, no change in the result.

Finally, i've created new App and replace client id and secret. Surprisingly it is working fine now. Do you find any reason for this? As i'm doubting, it may fail again. Can you help me in this.

Thanks.

Justin Parker

unread,
Jan 8, 2013, 4:41:55 PM1/8/13
to sing...@googlegroups.com
I would suggest you use this library instead: https://github.com/Singly/singly-php

it has been updated to work correctly with connecting accounts. The issue is that the library you are using uses /oauth/authorize instead of oauth/authenticate. Feel free to implement this as is stated in the documentation if you want to keep using the same library.

--
You received this message because you are subscribed to the Google Groups "Singly API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/singlyapi/-/qPmuB8xHXg0J.

To post to this group, send email to sing...@googlegroups.com.
To unsubscribe from this group, send email to singlyapi+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/singlyapi?hl=en.

Suman Ravuri

unread,
Jan 8, 2013, 11:11:13 PM1/8/13
to sing...@googlegroups.com
Hi Justin,
             Thanks for response, we have modified API to use authenticate. After modification facebook started working fine without any issues. But twitter is still having the problem of getting the same data irrespective twitter user id. Is singly treating facebook and twitter differently. Do you have any specific suggestion for twitter?

Thanks,
Suman
Reply all
Reply to author
Forward
Message has been deleted
0 new messages