0

I am using facebook connect on my site. I use some code to retrive data from facebook like Profile Information, Friends list etc.

My session will not expire until I close the browser manualy.

What code should I use on my logout page so that the session will expire automatically?

4

1 回答 1

1

假设您已经包含了 FB Javascript 库(像这样):

<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js">
</script> 

你可以使用FB.logout()

<a href="#" onclick="FB.logout();return false;">Logout</a>

请注意,这会将用户从 FB ConnectFacebook 中注销。

于 2010-08-30T13:08:56.850 回答