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=''></script>
    <p><a onclick='addToPage(); return false;'>Post to Feed</a></p>
    <p id='msg'></p>
      FB.init({appId: "YOUR_APP_ID", status: true, cookie: true});
      function addToPage() {
        // calling the API ...
        var obj = {
          method: 'pagetab',
          redirect_uri: 'YOUR_URL',

Direct URL Example

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

Share and Enjoy

  • Facebook
  • Twitter
  • Google Plus
  • Live
  • Delicious
  • Digg
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
  • Instapaper
  • FriendFeed


  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.