My current user story is that user1 is logged into my website and facebook (these accounts are connected etc).
User1 logs out of my site but not facebook.
After this user2 logs into his account, but the left over session from user1 screws with user2's interaction with my site and who they post as.
So to fix this I made it check if the user who is logged in actually owns the currently logged in facebook (this would result in them going to facebook log out etc) and it shows a link that should allow the user to log out...
Upon clicking the link they go to facebook and return to the site. But if you open a new tab and go to facebook User1 is still logged in.
How can I get this link to work.. what's going on. Is this a bug with the api or what?...
Edit: I've continued testing with value user ids loading and with valid access tokens but I have yet to get the logout link to work.