Use the commerce_eligiblity
API to enable platform partners to check the commerce eligibility for a given page for both offsite and onsite shops.
GET https://graph.facebook.com/vX.X/{pageID}/?fields=commerce_eligibility GET https://graph.facebook.com/vX.X/{pageID}/commerce_eligibility
GET
{ "offsite": { "is_elibile": true, }, "onsite": { "is_elibile": true, } }
GET
{ "offsite": { "is_elibile": false, "reasons": [ { "code": "VIEWER_IS_NOT_PAGE_ADMIN", "message": "The Page cannot be used because you are not a Page admin.", }, ], }, "onsite": { "is_elibile": false, "reasons": [ { "code": "VIEWER_IS_NOT_PAGE_ADMIN", "message": "The Page cannot be used because you are not a Page admin.", }, ], } }
Attribute | Type | Description |
---|---|---|
| Eligibility for offsite shops | |
| Eligibility for onsite shops |
Attribute | Type | Description |
---|---|---|
| boolean | Determines if the page is eligible |
|
| Ineligibility reasons if the page is not eligible |
Attribute | Type | Description |
---|---|---|
| Code for the ineligibility reason | |
| string | Message explaining the reason code |
| string | Optional help page URL when applicable |
Value | Description |
---|---|
| This Page is not currently eligible for Facebook Shops. |
| This Facebook Page already has a Shop. |
| The Page cannot be used because you are not a Page admin. |
| The Page cannot be used because you are not an admin of the Business that owns the Page. |
| Facebook Shops are currently not available in your region. |
| Checkout on Facebook or Instagram is currently not available in your region. |