I would like to if possible have an iframe open for facebook on my site, and create a button that would forcefully log out the current account that i am on regardless of timeline style and element classes etc. is there a way to forcefully disconnect the session so that the next time the page is visited it would require a log in? either through php or javascript.
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
|
I recommend using Facebook's provided SDK, because the way that you are doing it now seems kind of hacky and might even violate Facebook's terms of service. Facebook Javascript SDK: https://developers.facebook.com/docs/reference/javascript/ Facebook Logout function: https://developers.facebook.com/docs/reference/javascript/FB.logout/ You can trigger this function with your button click:
|
|||
|