Facebook Connect 与新的 JS SDK 是“Facebook 上的应用程序”的方法吗?
现在 FBML 已被弃用,在我看来,新的 JS SDK 和 FB Connect 足以在 FB 上拥有 iframe 应用程序。这种理解正确吗?
之前对这个问题的回答是基于当时仍然支持的 FBML Facebook 应用程序与 Facebook Connect 网站
例如所有旧的邀请 FBML现在可以替换为基于 FB Connect JS 的对话框,如此处所述 http://developers.facebook.com/docs/reference/dialogs/
Now that FBML is being deprecated, it seems to me that the new JS SDK and FB Connect will be sufficient to have an iframe app on FB. Is this understanding correct?
Previous answers to this question were based on FBML that still was supported back then
Facebook App vs. Facebook Connect site
For example all the old invite FBMLs can be replaced now with dialogs based on FB Connect JS as described here
http://developers.facebook.com/docs/reference/dialogs/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
现在,您应该根据您要构建的内容,在 JS 和 PHP SDK 或两者的组合之间进行选择。
我们通常使用 PHP SDK 进行身份验证,并使用 JS 进行 Feed Dialgos(例如发布到墙上)。
如果您需要几个起点,Thinkdiff.net 有两篇很棒的文章,其中包含可下载的源代码和演示,可以帮助您确定哪种方法更适合您的项目。
这是 JS 示例:
http://thinkdiff.net/facebook/ new-javascript-sdk-oauth-2-0-based-fbconnect-tutorial/
这是 PHP 示例:
http://thinkdiff.net/ facebook/php-sdk-3-0-graph-api-base-facebook-connect-tutorial/
Right now You should choose between the JS and PHP SDK or a combination of both depending on what you are building.
We usually work with the PHP SDK for Authentication and use JS for Feed Dialgos (posting to the wall for example).
If you need a couple of starting points Thinkdiff.net has two great post with downloadable source and demo that might help you decide what works better for your project.
Here is the JS Example:
http://thinkdiff.net/facebook/new-javascript-sdk-oauth-2-0-based-fbconnect-tutorial/
Here is the PHP Example:
http://thinkdiff.net/facebook/php-sdk-3-0-graph-api-base-facebook-connect-tutorial/
Facebook Connect 适用于 Facebook 之外的网站,不适用于画布或选项卡应用程序。
通常,您需要使用 JavaScript 和 PHP SDK,或者其他您首选的 PHP 替代方案。
Facebook Connect applies to web sites outside of Facebook, not to canvas or tab apps.
Usually, you will need to use the JavaScript and PHP SDKs, or something else for your preferred PHP alternative.