如何通过JS SDK或Open Graph API编程创建一个Facebook应用程序? (createApplication) [英] How to programatically create a Facebook application via JS SDK or Open Graph API? (createApplication)

查看:110
本文介绍了如何通过JS SDK或Open Graph API编程创建一个Facebook应用程序? (createApplication)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道现在有两种方法可以用于Facebook开发者网站上的记录(不好):


  1. <一个href =http://developers.facebook.com/docs/reference/oldjavascript/FB.Connect.createApplication =nofollow>旧(折旧)JavaScript SDK FB.Connect.createApplication

  2. 新的FBJS方法 Facebook.createApplication (仅适用于Canvas页面)

问题是我没有使用运行FBJS的Canvas应用程序,而我没有使用OLD JS SKD。我正在使用当前JavaScript SDK 的常规旧版PHP网站进行此操作和 PHP SDK



我正在使用通常的Open Graph API调用,并使用当前的SDK,因此我了解基础知识,我只是不知道如何继续使用OLD SDK,或者(手指交叉)我甚至真的需要?



那么,有没有办法使用当前的JS SDK制作新的Facebook应用程序?还是用服务器端PHP SDK调用Graph?



如果没有,如何调用旧的SDK来执行此操作?



谢谢



更新:您仍然无法做到这一点,但Facebook跟踪器中有一个官方错误: http://developers.facebook.com/bugs/295627350461318

解决方案

您指出的OLD SDK不在外面。它已被删除(Facebook称为不赞成使用)。我最近提出了一个功能请求,将它们添加到API中:



我:


Facebook开发者工具是
,功能相当缺乏。我们要
想要创建第三个
派对应用程序,向开发人员
应用程序添加
功能层,但是我们需要能够
通过Graph API创建和管理应用程序



Graph API支持查询现有应用程序的
信息。
要创建,管理或删除
应用程序,开发人员必须访问
开发人员应用程序。


他们:


-------评论#1来自Jeff Bowen 2010-12-07 16:59:12( - ) [回复]



-------感谢您的要求。我们将在我的愿望清单



中追踪这一点

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

解决方案

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

这篇关于如何通过JS SDK或Open Graph API编程创建一个Facebook应用程序? (createApplication)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆