gpt4 book ai didi

facebook - 我可以依赖 Facebook Connect 吗?

转载 作者:行者123 更新时间:2023-11-30 05:20:16 25 4
gpt4 key购买 nike

我一直在研究使用 Facebook Connect 对于我正在构建的新网站,但是 Facebook API 似乎有点不稳定。

我一直使用的代码是基本的,但是示例应用程序“therunaround”也存在类似问题。

例如,好友列表并不总是加载,登录的 Facebook 用户并不总是被检测到。

这些问题纯粹是因为我才刚刚开始吗?

最佳答案

是的,你描述的问题很可能只是因为没有正确使用API​​。

Facebook Connect 仍然很新,偶尔会遇到问题,但总的来说它非常稳定,许多主要网站都在使用它。

此开发人员帖子可能与您的问题相关:(来自:http://www.facebook.com/developers/message.php)

Please make sure features are loaded before using Facebook Connect JS APIs Feb 26, 2009 1:35pm

Almost all Facebook Connect's JS APIs are loaded asynchronously after calling FB.init(). Because of the asynchrous nature, the JS APIs are not necessaryly available immediately after making these calls. You should use FB.ensureInit or FB.Bootstrap.requireFeatures to ensure the JS APIs are loaded before using them.

We have a wiki documentation that describes this in more detail. However, we just found out that some Connect apps were calling Connect JS API such as FB.Connect.* and FB.Facebook.* immedidately after calling FB.init. This approach would cause intermittent failures because the functions may not be loaded yet.

Pior to last night's push, we fixed a bug in our FeatureLoader.js.php where it was always automatically staring the asynchourous loading of Connect features. After the bugs is fixed, code that were calling JS API before making they are loaded are more likely to fail. If you noticed that your Connect apps are getting function not defined erros for Connect JS functions, please check your code to make sure it is waiting for features to loaded before using them.

关于facebook - 我可以依赖 Facebook Connect 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/689075/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com