Facebook — connect page to review site

Connect a Facebook page to a store review site. Guards against a page already linked elsewhere. Saves the page token + id, sets sendto_scrapper=Y, url_status=enable, connection_status=connected. Stores the FB user token on the company if not already set; and deletes prior response rows if the page changed. Emits audit STORE_REVIEW_SITE_OAUTH_CONNECTED.

Auth

  • Auth-optional. Bearer token (scoped by an ownership check) OR an invite hash (no token) whose encoded store must own store_review_site_id.

Rate limit

  • 30 requests/min per IP (public).

Body

FieldTypeRequiredNotes
store_review_site_idintegerRequiredMust exist; caller scope (an ownership check) unless using hash.
fb_tokenstring (≤2000)RequiredLong-lived user access token.
fbpage_access_tokenstring (≤2000)RequiredPage access token.
fbpage_idstring (≤255)RequiredFacebook page id.
urlurl (5–2000)RequiredFacebook page URL → review_site_url + landing_page_url.
scopesarrayOptionalGranted OAuth scopes.
fbpage_namestring (≤255)OptionalFacebook page display name, recorded with the connection event.
landing_page_urlurl (5–2000)OptionalAccepted; the page url is used for the landing page.
hashstringOptionalInvite hash [store_id, 15]; grants access without a token, must match the row's store.

Behaviour

  • 200 on connect. 400 if the page is already linked to another place.

Errors: 422 on validation failure.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
string
string
string
string
scopes
array of strings
scopes
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json