English 中文(简体)
登录后 Facebook 重定向
原标题:Facebook redirect after login
最佳回答

结果发现问题发生在登录过程中稍早一点,回调从未被调用。 我确实在回调中设置了一个断点(但未被调用 ), 但我认为断点可能出于某种原因(或许是因为它是在另一个窗口中执行的 ) 。

问题在于频道文件(博士们似乎认为是可选的)运作不当,

问题回答

这不是解决你问题的办法,而是更像是“工作解决”,尽管它仍然使用 window.top. placed ,但不使用回调,所以可能行得通(我不知道回调在哪里执行,因为执行回调的是Fb sdk,也许他们从iframe中的 fb iframe 调用)。

Instead of using client side authentication, you can use the server side flow. The entire process is happening on the top window, since it starts by you redirecting the user to the oauth dialog using window.top.location.

当进程结束时, Facebook 将用户重定向到您重定向(_uri), 在那里, 您可以简单地将用户重定向到您想要的地方 。

I hope this will help. Also, you should be aware that in the Facebook Platform Policies it states:

13 . The primary purpose of your Canvas or Page Tab app on Facebook must not be to simply redirect users out of the Facebook experience and onto an external site.





相关问题
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 ...

热门标签