Kai Chan
Kai Chan

Reputation: 271

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 which 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.

Upvotes: 27

Views: 7539

Answers (4)

Mike Knoop
Mike Knoop

Reputation: 506

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.

Upvotes: 1

Brad Dwyer
Brad Dwyer

Reputation: 6484

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/

Upvotes: 6

TESTERTHETHUMPER
TESTERTHETHUMPER

Reputation: 176

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

Upvotes: 2

desbest
desbest

Reputation: 4896

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.

Upvotes: 0

Related Questions