With the Add Page Tab Dialog you can add an app to a Facebook Page that you administer. This does not require any extended permissions.
This dialog can be used with the JavaScript SDK, and by performing a full page redirect to a URL.
FB.ui({
method: 'pagetab',
redirect_uri: 'YOUR_URL'
}, function(response){});
The above example assumes that the person has already logged in to your app.
https://www.facebook.com/dialog/pagetab?
app_id=YOUR_APP_ID
&redirect_uri=YOUR_URL
Parameter | Description |
---|---|
| Your app's unique identifier. Required. |
| The URL to redirect to after a person clicks a button on the dialog. Required when using URL redirection. This URL must be owned by the same app specified by the |
| Determines how the dialog is rendered.
|
There is no response data for from this dialog, however the developer of the Page Tab app will be notified via a callback URL that someone has added their app to a Facebook Page.