Facebook Logout

Facebook Logout

Facebook Logout is a function used to make the uer logout after login into your application using facebook login. In this case, what you need is quite simple. What you need just make a button that will trigger a facebook logout function.

Here is the logout function :

function facebook_logout(){
	FB.logout(function(response) {
		//code when user successfuly logged out
	});
}

In this case, when user push a button that will trigger the Facebook Logout, the fb:login-button tag will automatically changed.

http://septiadi.com/2011/05/12/facebook-logout/


Facebook Logout Facebook Logout Facebook Logout Facebook Logout Facebook Logout Facebook Logout

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: