Add facebook Page Tab Dialog


The Add Page Tab Dialog prompts the user to add an app to a Facebook Page that the user admins. This does not require any extended permissions.

JavaScript Example

The following simple JavaScript example demonstrates using the FB.ui method in the JavaScript SDK to use the Add Page Tab Dialog:

    <div id='fb-root'></div>
    <script src='http://connect.facebook.net/en_US/all.js'></script>
    <p><a onclick='addToPage(); return false;'>Post to Feed</a></p>
    <p id='msg'></p>
    <script>
      FB.init({appId: "YOUR_APP_ID", status: true, cookie: true});
      function addToPage() {
        // calling the API ...
        var obj = {
          method: 'pagetab',
          redirect_uri: 'YOUR_URL',
        };
        FB.ui(obj);
      }
    </script>

Direct URL Example

You can also bring up the Add to Page Dialog by explicitly directing the user to the /dialog/pagetab endpoint:

https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID
&display=popup&next=YOUR_URL
Advertisements

2 thoughts on “Add facebook Page Tab Dialog

  1. excellent points altogether, you simply won a new reader. What would you suggest about your submit that you simply made a few days in the past? Any positive?

  2. Wonderful submit, very informative. I ponder why the other specialists of this sector do not notice this. You must proceed your writing. I’m confident, you have a huge readers’ base already!|What’s Going down i’m new to this, I stumbled upon this I have discovered It positively useful and it has helped me out loads. I am hoping to contribute & help different customers like its aided me. Great job.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s