我知道目前有两种方法可以用来做到这一点,在 Facebook 的开发者网站上有(很差)记录:
- 旧的(已弃用的)JavaScript SDK FB.Connect.createApplication
- 一种新的 FBJS 方法 Facebook.createApplication (仅用于 Canvas 页面)
问题是我没有使用运行 FBJS 的 Canvas 应用程序,而且我不使用旧的 JS SKD。我正在尝试在使用 当前 JavaScript SDK 的常规旧 PHP 网站上执行此操作和 PHP SDK。
我正在使用当前的 SDK 进行通常的 Open Graph API 调用等,所以我了解基础知识,我只是不确定如何继续使用旧的 SDK,或者如果(手指交叉)我真的必须这样做?
那么,有没有办法使用当前的 JS SDK 制作新的 Facebook 应用程序呢?或者使用服务器端 PHP SDK 调用图表?
如果没有,我如何调用旧的 SDK 来执行此操作?
谢谢
更新:您仍然无法执行此操作,但 Facebook 跟踪器中有一个关于它的官方错误:http://developers.facebook.com/bugs/295627350461318
I know there are currently two methods that can be used to do this, documented (poorly) on Facebook's Developer site:
- The old (depreciated) JavaScript SDK FB.Connect.createApplication
- A new FBJS method Facebook.createApplication (only for use on Canvas pages)
The problem is that I not using a Canvas app that runs FBJS, and I am not using the OLD JS SKD. I am trying to do this on a regular old PHP website that uses the current JavaScript SDK and the PHP SDK.
I am doing the usual Open Graph API calls and such with the current SDK, so I understand the basics, I'm just not sure how to proceed to use the OLD SDK, or if (fingers crossed) I even really have to?
So, is there a way to make new Facebook Apps with the current JS SDK? Or with a server side PHP SDK call to the Graph?
And if not, how do I call the old SDK to do this?
Thanks
UPDATE: You still can't do this, but there is an official bug in the Facebook tracker about it: http://developers.facebook.com/bugs/295627350461318
发布评论
评论(1)
正如您所指出的,旧 SDK 之外没有。它已被删除(Facebook 称之为“已弃用”)。我最近向他们提出了一项功能请求,要求他们将其重新添加到 API 中:
我:
他们:
There isn't outside of the OLD SDK as you indicated. It's been removed (what Facebook calls "deprecated"). I put in a feature request recently for them to add it back into the API:
Me:
Them: