Iam using Yii auth extension for login to my website using social networks like facebook, linkedin, twitter etc. Iam able to sign in to the website using the extension. But my problem is that when I signout from my website the accounts of the corresponding networks is not signing out. How can I implement it correctly ?
Asked
Active
Viewed 327 times
0
-
check *[this](http://stackoverflow.com/questions/11483594/how-to-log-out-user-using-facebook-sdk/11537046#11537046)*, its realted to facebook signout, – arun Dec 14 '12 at 12:27
-
@LoverOfEvening But it is only about facebook.. I need to implement logout for all the other social networks included in the site. Is there any general way?? – anu Dec 17 '12 at 03:57
-
i haven't' implemented anything yet, search the net bro.. otherwise build one your own and publish it :) – arun Dec 17 '12 at 06:09
1 Answers
0
using access_token from social network we can logout .
for fb logout Iam using the below code
$url = 'https://www.facebook.com/logout.php?next=' . $returnurl. ' &access_token=' . $token;
session_destroy();
header('Location: ' . $url);

anu
- 458
- 2
- 13
- 36