Is the shop's Facebook Page connected
- Credentials
- OAuth access token
- Scopes
marketing:read
Whether a Page is connected, which one, whether it is working, when it last posted and its linked Instagram account, and whether this store may connect a Page now (available: Meta is set up for the store). Ids and names only: never a token, from this call or any other.
A connection status of error means Meta refused the last post (a dead token looks like posting that quietly does nothing, so it is shown): connect the Page again.
Access: OAuth scope marketing:read; not write-gated.
merchantOAuth marketing:readAuthorizationBearer <token>OAuth 2.1 (authorization code + PKCE S256, public clients, dynamic registration) for connected AI apps. Effective power is scopes granted AND the person's role today AND the plan. orders:refund, billing:write and team:write are opt-in on the consent screen. Write implies read for marketing:read and messages:read, so a grant holding marketing:write passes a marketing:read check, and messages:send passes messages:read.
Scope: marketing:read
storeId*stringA store the person can reach. Any other id answers 404, never 403.
OK
application/json- response
data*The shop's Facebook channel. Ids and names only: never a token.
curl -X GET 'https://api.shopeazy.co/v1/merchant/stores/<storeId>/social/facebook' \ -H 'Authorization: Bearer <access_token>'{ "data": { "available": false, "connected": false, "pageId": null, "pageName": null, "category": null, "status": null, "lastError": null, "connectedAt": null, "lastPostAt": null, "instagramUsername": null }}Set a draft to post by itself at a time PUT
A post that already went out is refused. Needs a connected Facebook Page. Owner or admin. Access: OAuth scope `marketing:write`; write-gated by the subscription.
Post a free-text message to the shop's Facebook Page, now POST
Publishes at once, publicly, to the connected Page: `createSocialPost` and `publishSocialPost` post about listings, this posts whatever the merchant wrote. Needs a connected Page (`getFacebookPage`): without one 409 `facebook_not_connected`; a Page whose token Meta no longer accepts is 422 `provider_error` and the channel shows as broken in `getFacebookPage` (`status: error`, `lastError`) so posting never fails silently. Facebook's own words for a refusal come back in the message, quoted as Facebook's. The `Idempotency-Key` is what keeps a retry from posting twice: it is written down before Facebook is called, so a replay returns the first answer and posts nothing, even after a lost answer or a crash. Facebook busy (429) or down (5xx, or no answer) is 503 `provider_unavailable` with `Retry-After`, never 500. When Facebook answered busy nothing was posted and the same key may be sent again; when it did not answer, or failed, the post may already be on the Page, so the same key is held (409 `in_flight`): look at the Page, and use a new key to send it again. Access: OAuth scope `marketing:write`; write-gated by the subscription.