Overview
Resource Group ¶
get facebook pages that user has access ¶
get facebook pages that user has accessGET/brands/:brand/users/self/facebook
if you provide allAvailablePages = true in query string, you get all the facebook pages this user has access, but if you don’t provide this, it means it returns all the facbook pages this user connected
Example URI
GET /brands/:brand/users/self/facebook
URI Parameters
- brand
string(required) Example: 5bc69370-c954-446d-b205-5a6523452cb2- allAvailablePages
string(required) Example: true
Response
200Body
{
"code": "OK",
"data": [
{
"id": "ebd814e2-a256-42c8-80d1-aa5be75bbe1b",
"name": "page1",
"facebook_page_id": "page1Id",
"instagram_business_account_id": "insta1",
"instagram_username": "instagram1",
"instagram_profile_picture_url": "https://test.cloudfront.net/80a227b2-29a0-11e7-b636-e4a7a08e15d4/instagramAvatars/b8f70a00-d3e3-11f0-a2d4-1bcac3894d4e.jpg",
"instagram_profile_picture_file": "0d138e53-5f9e-4b90-ac76-f6f8156985ec",
"instagram_id": null,
"revoked": false,
"sub_team_usage_enabled_at": null,
"created_at": 1765163546.492903,
"updated_at": 1765163546.492906,
"deleted_at": null,
"brand": "5bc69370-c954-446d-b205-5a6523452cb2",
"user": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"type": "facebook_page"
},
{
"id": "b481c0f4-71d0-438e-81f6-060a8b7f7479",
"name": "page2",
"facebook_page_id": "page2Id",
"instagram_business_account_id": "insta2",
"instagram_username": "instagram2",
"instagram_profile_picture_url": "https://test.cloudfront.net/80a227b2-29a0-11e7-b636-e4a7a08e15d4/instagramAvatars/b905fe20-d3e3-11f0-a2d4-1bcac3894d4e.jpg",
"instagram_profile_picture_file": "28906299-d6f1-4bac-8a2b-2dad4f298f63",
"instagram_id": null,
"revoked": false,
"sub_team_usage_enabled_at": null,
"created_at": 1765163546.493057,
"updated_at": 1765163546.493058,
"deleted_at": null,
"brand": "5bc69370-c954-446d-b205-5a6523452cb2",
"user": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"type": "facebook_page"
},
{
"id": "0ca76277-bebf-40fc-923b-24f363df48f9",
"name": "page2",
"facebook_page_id": "asdsfsdfasd",
"instagram_business_account_id": "insta3",
"instagram_username": "instagram3",
"instagram_profile_picture_url": "https://test.cloudfront.net/80a227b2-29a0-11e7-b636-e4a7a08e15d4/instagramAvatars/b9312cd0-d3e3-11f0-a2d4-1bcac3894d4e.jpg",
"instagram_profile_picture_file": "f1fd4e4e-cba8-4382-8643-bf3944a60164",
"instagram_id": null,
"revoked": false,
"sub_team_usage_enabled_at": null,
"created_at": 1765163546.682421,
"updated_at": 1765163546.682424,
"deleted_at": null,
"brand": "5bc69370-c954-446d-b205-5a6523452cb2",
"user": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"type": "facebook_page"
}
],
"info": {
"count": 3,
"total": 0
}
}Disconnect a facebook page that can be done as owner of the page ¶
Disconnect a facebook page that can be done as owner of the pageDELETE/brands/:brand/users/self/facebook/:facebookPageId
Example URI
DELETE /brands/:brand/users/self/facebook/:facebookPageId
URI Parameters
- brand
string(required) Example: 5bc69370-c954-446d-b205-5a6523452cb2- facebookPageId
string(required) Example: 0ca76277-bebf-40fc-923b-24f363df48f9
Response
204toggle sub team usage of a facebook page that can be done as owner of the page ¶
toggle sub team usage of a facebook page that can be done as owner of the pagePUT/brands/:brand/users/self/facebook/:facebookPageId/access
Example URI
PUT /brands/:brand/users/self/facebook/:facebookPageId/access
URI Parameters
- brand
string(required) Example: 5bc69370-c954-446d-b205-5a6523452cb2- facebookPageId
string(required) Example: 0ca76277-bebf-40fc-923b-24f363df48f9
Request
Body
{
"subTeamUsageEnabled": true
}Response
200Body
{
"code": "OK",
"data": {
"id": "0ca76277-bebf-40fc-923b-24f363df48f9",
"name": "page2",
"facebook_page_id": "asdsfsdfasd",
"instagram_business_account_id": "insta3",
"instagram_username": "instagram3",
"instagram_profile_picture_url": "https://test.cloudfront.net/80a227b2-29a0-11e7-b636-e4a7a08e15d4/instagramAvatars/b9312cd0-d3e3-11f0-a2d4-1bcac3894d4e.jpg",
"instagram_profile_picture_file": "f1fd4e4e-cba8-4382-8643-bf3944a60164",
"instagram_id": null,
"revoked": false,
"sub_team_usage_enabled_at": 1765163545.597815,
"created_at": 1765163546.682421,
"updated_at": 1765163546.682424,
"deleted_at": null,
"brand": "5bc69370-c954-446d-b205-5a6523452cb2",
"user": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"type": "facebook_page"
}
}