I have my website user "M" and I also allow user to connect to facebook account to see his/her wallpost via my website (such as tweetdeck).
I allow that my website user have only one facebook account like.
User "John" connect with his f开发者_Go百科acebook account name "FbJohn" something like this.
I also design my database to store uid for facebook account for John.
id uid name
11 123456 John Snith
22 234567 Mike Bert
uid is store when user register on my website, facebook popup ask him to permission access and update uid for user.
my problem is when user back and login to my website. I need to check that user use correct facebook account or not?
the problem occur when some user use public computer and old user login to facebook before he login to my website.
I need to know that facebook correct for uid in database? if not can facebook logout and show new facebook login popup?
how can i do this. give me an idea?
thank you!
It's not clear what you are asking. Anyway, check the following question.
PHP How can I store Facebook session for further uses
精彩评论