Adding a Tab to facebook page

后端 未结 9 1987
忘了有多久
忘了有多久 2020-12-04 07:31

I just created a facebook page. I also have a separate facebook APP.

How can I add a tab containing my facebook APP to the facebook page?

I\'ve set the app t

相关标签:
9条回答
  • 2020-12-04 08:24

    Solution !

    1) Enter https://developers.facebook.com/apps/ and choose (or create) desired app.

    2) do this from settings:

    3) then enter:

    - https://facebook.com/dialog/pagetab?app_id=APP_ID&redirect_url=https://yoursite.com
    or
    - http://facebook.com/add.php?api_key=APP_KEY&pages=1&page=PAGE_ID

    0 讨论(0)
  • 2020-12-04 08:25

    There are two main ways to do this, and a third which I think is out of scope because it's outside the control of the app developer

    1) Add Page Tab dialog

    For this, you send the user to the dialog and they're prompted to add your app to your page

    Example usage is to link the user to a URL of this format:

    http://www.facebook.com/dialog/pagetab
      ?app_id=<APP_ID>
      &redirect_uri=<A URL OWNED BY YOUR APP> 
    

    Any URL owned by your app works for the redirect_uri parameter, but in most cases you'll want to use the same value your app uses for 'Page Tab URL' or 'Secure Page Tab URL' in the app settings

    For a working example, you can add the InstaTab app using this dialog

    The admin will see a dialog that looks like this: Add Page Tab Dialog prompting a user to add the 'InstaTab' app to their page

    Full documentation for the dialog is in the Add Page Tab dialog documentation

    2) Post your app to the user's page(s) using the API directly

    Using the Page object's /tabs connection you can add your app to a page directly. To make the API call you'll need manage_pages permission from the page admin.

    Once you have that, use the Page access token to make a POST request to /v2.0/<PAGE ID>/tabs with the one parameter, app_id with a value of the App ID of the app you want to add to the page. If the app provides a page tab, that tab will be added to the page.

    A sample API call would be a HTTP POST to

    https://graph.facebook.com/{page-id}/tabs
        ?app_id={app-id-to-add}
        &access_token={page-access-token}
    

    3) Page settings interface on Facebook.com

    The page admin can use Facebook's Page management interface to search for apps which provide page tabs in the Apps for Pages section of the App Center - in this case you'll need a way to get users who find your app via this method to add the tab using one of the methods aboce

    0 讨论(0)
  • 2020-12-04 08:27

    A bit late for you, but may be for others, I found out how to add my app to a new tab:

    1. You need to create a profile for the page admin! If you didn't, on the top right of Facebook page you should have a link 'Create Your Profile'. It doesn't make sense to me but ...
    2. Go to this link (thanks ifaour):https://www.facebook.com/dialog/oauth?client_id=YOUR_APP_ID&redirect_uri=YOUR_URL&scope=manage_pages&response_type=token
    3. Got to your http://www.facebook.com/apps/application.php?id=YOUR_APP_ID and add the app to your page
    0 讨论(0)
提交回复
热议问题