Meta Graph API Publisher

A modern helper to post updates and links to your Facebook Pages

Facebook Graph API v20.0

Publish New Post

Setup & Access Tokens Guide

Posting to Facebook requires specific tokens and identifiers. Follow these steps to obtain them:

Step 1: Create a Meta App

Go to the Meta for Developers Dashboard and register.

  1. Click My Apps and choose Create App.
  2. Select Other and then select the Business or Consumer app type.
  3. Complete the basic setup and note down your App ID and App Secret from Settings > Basic.
Step 2: Add API Permissions

Before posting, your app needs permission to manage and publish posts on your behalf.

Go to the App Dashboard, locate your product list, and check for these permission scopes:

  • pages_manage_posts (Required to publish posts)
  • pages_read_engagement (Required to read page insights/status)
  • pages_show_list (Required to find pages connected to your account)
Step 3: Get Short-Lived User Token

Use the Graph API Explorer to generate a temporary token representing your user account:

  1. Open the Graph API Explorer.
  2. Select your created app in the top right.
  3. In User or Page dropdown, select Get User Access Token.
  4. Add the permissions: pages_manage_posts, pages_read_engagement, and pages_show_list.
  5. Click Generate Token and authenticate. Copy this token (it lasts 1-2 hours).
Step 4: Exchange for Long-Lived Token

Exchange the short-lived token for a long-lived user token (valid for 60 days) by making a GET request to the following endpoint (replace values):

GET https://graph.facebook.com/v20.0/oauth/access_token?
grant_type=fb_exchange_token&
client_id={YOUR_APP_ID}&
client_secret={YOUR_APP_SECRET}&
fb_exchange_token={SHORT_LIVED_TOKEN}

Copy the new access_token from the JSON response.

Step 5: Get Permanent Page Access Token

A Page Access Token is required to post to a Page. If you generate it using a Long-Lived User Token, the Page Access Token will never expire!

Make a request to the following endpoint using your long-lived user access token:

GET https://graph.facebook.com/v20.0/me/accounts?
access_token={LONG_LIVED_USER_TOKEN}

The response will list all pages you manage. Locate your target page and copy its access_token. This is your permanent token!

Step 6: Locate Page ID

You can find your Facebook Page ID in a few ways:

  1. From the response in Step 5, copy the page's id field.
  2. On Facebook, switch to your Page, click your profile picture > Settings & privacy > Settings > New Pages Experience or Page Details.
  3. Visit your page, click the About tab, and click Page transparency. The Page ID will be displayed there.