English 中文(简体)
FB.Event.subters ( auth.logout , function(response) and redirect tosite not working
原标题:FB.Event.subscribe( auth.logout , function(response) and redirect to site not working
  • 时间:2012-01-16 06:01:57
  •  标签:
  • facebook

我们正在使用

<fb:login-button autologoutlink="true"></fb:login-button> 

用于:

FB.Event.subscribe( auth.logout , function(response) 

但是,在点 log上点击 log子后,它从面板上记录下来,但没有重载网页和<代码>。 FB.Event.subters ( auth.logout , function(response)

问题回答

Have you made sure that you are doing the FB.Event.subscribe inside the window.fbAsyncInit function? For example:

window.fbAsyncInit = function() {

FB.init({
  ......
)};

FB.Event.subscribe( auth.logout , function(response){
  // User is now logged out
  window.refresh();
)};

};

I had a similar problem, and when I had the Event.subscribe outside of the fbAsyncInit it would not fire, but moving it inside fixed the problem. Hopefully this works for you.





相关问题
Facebook Connect login dialog not working

I am using Facebook Connect for iPhone and following the official instructions. I use the following code to display the login dialog: FBLoginDialog* dialog = [[[FBLoginDialog alloc] initWithSession:...

Facebook App Profile Tab is Empty ... No Content Displayed?

I can view my application via the http://apps.facebook.com/myapplication/ link and the content shows up correctly. I also added the application as a tab to a facebook page. However, when viewing the ...

Facebook Platform error: "Object cannot be liked"

I m working on a Facebook Application that generates wall posts. In testing these posts, I ve discovered that the Facebook Platform action of "liking" a post is failing. The specific error message ...

how to call showPermissionsDialog() in php (facebook api)?

I was reading over the documentation yet I could not figure out how to call Facebook.showPermissionsDialog() in php include_once ./facebook-platform/php/facebook.php ; $facebook = new Facebook(my ...

Facebook connect

If I plug in the facebook connect into my website, How can I prevent double signups? Lets say I have a user that s already signed up to my site but he clicked the connect with facebook, is there a ...

热门标签