Create a Meta Developer App
Meta requires an application registered in the Meta for Developers console to generate API credentials and subscribe to page webhooks.
- Log in to Meta for Developers using your Facebook account.
- Click My Apps in the top right, then select Create App.
- Select Other as the use case, click Next, then choose Business as the App Type.
- Enter an App Display Name (e.g.
UniSearch Ingestion Connector) and choose your Meta Business Portfolio. - Click Create App to enter the App Dashboard.
Add the Messenger Product
Once your app is created, add the Messenger messaging capability to your App:
- In the left sidebar of your App Dashboard, click Add Product (or Use Cases).
- Locate Messenger and click Set Up.
- The Messenger settings panel will now appear in your left navigation menu under Messenger → Settings (or Messenger API Settings).
Generate a Long-Lived / Permanent Page Access Token
To retrieve messages and conversations, UniSearch requires a Page Access Token for your business page:
- Go to Messenger → Settings → Access Tokens.
- Click Add or Remove Pages to select the Facebook Pages you manage.
- Click Generate Token next to your Page. Check "I understand" and copy the generated token.
- Take note of your numerical Page ID (visible next to the Page name).
Standard Page Tokens expire after 60 days. To obtain a token that never expires:
- Go to business.facebook.com → Settings → Users → System Users.
- Create a System User with the Admin role.
- Click Generate New Token, select your App, and choose 60 days or Never as token expiration.
- Check permissions:
pages_messaging,pages_read_engagement, andpages_show_list.
Configure Real-Time Webhooks
Meta Webhooks notify UniSearch the instant a customer sends a message or submits a postback, eliminating polling delays:
- In your Meta App Dashboard, navigate to Messenger → Settings → Webhooks (or Webhooks in the left sidebar).
- Click Add Callback URL (or Edit Callback URL).
- Paste the UniSearch Callback URL:
- Enter a Verify Token of your choice (e.g.
unisearch_messenger_token). Make sure to remember this token. - Click Verify and Save. Meta will immediately send a challenge to UniSearch. You will see a green checkmark upon success!
- Under Subscription Fields, click Manage and check:
messages(Customer messages, attachments, audio memos)messaging_postbacks(Button clicks and lead form submissions)message_deliveriesandmessage_reads(Status watermarks)
- Under Webhooks for Page, click Subscribe next to your Facebook Page!
Save & Connect in UniSearch Settings
Now connect your Facebook Page in the UniSearch Settings Hub:
- Log into your UniSearch account and go to Settings → Storage & Messaging.
- Click Add Storage Provider and select Facebook Messenger Business from the dropdown.
- Enter your Page ID and paste the Page Access Token.
- (Optional) Enter your App Secret (found in Meta App Dashboard under App settings → Basic) for cryptographically verified SHA-256 HMAC webhook payloads.
- Enter the Webhook Verify Token you configured in Step 4.
- Click Test Graph API Token to verify permissions and connection.
- Click Save Messenger Account.