How to programatically create a Facebook application via JS SDK or Open Graph API? (createApplication)

和自甴很熟 提交于 2019-11-26 23:24:23

问题


I know there are currently two methods that can be used to do this, documented (poorly) on Facebook's Developer site:

  1. The old (depreciated) JavaScript SDK FB.Connect.createApplication
  2. 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:


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:

The Facebook Developer tool is considerably lacking in features. We'd like to be able to create a third party application that adds layers of functionality to the developer application, but we'd need to be able to create and administer applications via the Graph API.

The Graph API supports querying for information on existing applications. To create, administer or delete applications developers must go to the Developer Application.

Them:

------- Comment #1 From Jeff Bowen 2010-12-07 16:59:12 (-) [reply]

------- Thanks for the request. We’ll track this on our wishlist



来源:https://stackoverflow.com/questions/4719260/how-to-programatically-create-a-facebook-application-via-js-sdk-or-open-graph-ap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!