开发者

Create a facebook application programmatically

I'm trying to programmatically create an application in Facebook. I can do that with this:

https://www.facebook.com/connect/create_app.php?api_key=[key]&name=app_name

However, there's always a popup that says "Allow [Root App] to integrate Facebook functionality for you?" ... OK.

Is it possible for the "Root App" to create the application on the user's behalf without the popup via some previous permission whic开发者_开发技巧h they have allowed, like stream_publish ...etc or maybe a session_token or ??

Someone said I can create child apps via "admin.setAppProperties" but couldn't get it working. I've also tried "FB.Connect.createApplication" and "Facebook.createApplication" but also failed.

Can anyone help? Maybe with some sample code.


There used to be an API for this but I think it has been discontinued. You can see if you can hack it together from the information available here:

http://blog.programmableweb.com/2009/10/15/facebook-lets-you-easily-integrate-into-sites-and-widgets-with-new-create-application-api/


Child applications (I believe they called them 'fourth party applications') intentionally need user interactions to create.


The documentation for https://www.facebook.com/connect/create_app.php?api_key=[key]&name=app_name is scarce to none. Are you able to access the API key of the newly created application somehow? Or set further app settings such as site-url?

I'm thinking you would need the user's permission to view /accounts then monitor before/after state to detect which one was created.


Is it possible for the "Root App" to create the application on the user's behalf without the popup via some previous permission which they have allowed, like stream_publish ...etc or maybe a session_token or ??

If you create a Facebook application that only pulls someone's profile information, and then you add new functionality that allows it to automatically post on people's walls; you would have to require the user to re-authenticate themselves to give you those extra permissions.

It's hard to understand what you meant by that question.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜