开发者

can't log out of facebook from App

开发者 https://www.devze.com 2022-12-25 22:52 出处:网络
I\'m trying to logout of facebook from my App using the following code below, but i\'m still logged in (and my alert does not execute)

I'm trying to logout of facebook from my App using the following code below, but i'm still logged in (and my alert does not execute)

also note, this is an external App, using the facebook API.

any ideas?

FB_RequireFeatures(
  ["Api"],
  function(){

   FB.Facebook开发者_运维百科.init(api_key, channel_path);
   var api = FB.Facebook.apiClient;
   FB.Connect.logout(function(){alert("logged out!");})

  }
 );


With the new JavaScript API, you can do:

FB.logout()
0

精彩评论

暂无评论...
验证码 换一张
取 消