Generate a Page access token

AI Bucket uses your token to call Facebook APIs (for example, to send replies). Token type and permissions determine what your bot can do.

What you should understand

  • Tokens are secrets: treat them like passwords and store them securely.
  • Scopes/permissions control access; missing permissions cause API errors.
  • Tokens can expire or be revoked; plan how you will rotate and update them.

Generate the token

AI Bucket needs an access token that can access your Facebook Page and send messages. Typically this is a Page access token (or a system-user token that can act on the Page).

  1. In Meta Business settings, create a System User (recommended for server-to-server usage).
  2. Generate a token for your Meta app with the Page messaging permissions required by your setup.
  3. Keep the token secure. If it expires, generate a new one and update it in AI Bucket.

Important

Paste the raw token only. Do not include a “Bearer ” prefix.

Find the correct page_id

AI Bucket’s Facebook Bot requires the Page ID (page_id). This must match the Page that will receive messages and trigger webhook events.

  1. Open your Facebook Page settings in Meta tools.
  2. Find the numeric Page ID.
  3. Copy the Page ID and use it as page_id when creating the bot in AI Bucket.

Tip

If you’re unsure which Page ID is correct, send a test message and verify which bot receives webhook events in Omni-Chats.

Finish setup in AI Bucket

  1. Open AI Bucket → Facebook Bots → Create Facebook Bot.
  2. Paste page_id and access_token, then optionally attach AI Knowledge Base and a system prompt.
  3. Send a test message and confirm it appears in Omni-Chats and the bot can reply.

Common token issues

Access token errors

Confirm the token is valid, has required permissions, and is pasted without a “Bearer ” prefix. Regenerate and update the bot if needed.

Works in testing but not in production

Check Meta app mode (development/live), app review requirements, and whether the Page is allowed under the current mode.

Next