Attach Facebook Pages
Attach Facebook pages to a connected Facebook account.
POST
/
social-media-posting
/
oauth
/
{locationId}
/
facebook
/
accounts
/
{accountId}
Attach Facebook Pages
curl --request POST \
--url https://services.leadconnectorhq.com/social-media-posting/oauth/{locationId}/facebook/accounts/{accountId} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"pages": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {
Authorization: '<authorization>',
Version: '<version>',
'Content-Type': 'application/json'
},
body: JSON.stringify({pages: ['<string>']})
};
fetch('https://services.leadconnectorhq.com/social-media-posting/oauth/{locationId}/facebook/accounts/{accountId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/social-media-posting/oauth/{locationId}/facebook/accounts/{accountId}"
payload = { "pages": ["<string>"] }
headers = {
"Authorization": "<authorization>",
"Version": "<version>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Last modified on March 8, 2026
Was this page helpful?
Attach Facebook Pages
curl --request POST \
--url https://services.leadconnectorhq.com/social-media-posting/oauth/{locationId}/facebook/accounts/{accountId} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"pages": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {
Authorization: '<authorization>',
Version: '<version>',
'Content-Type': 'application/json'
},
body: JSON.stringify({pages: ['<string>']})
};
fetch('https://services.leadconnectorhq.com/social-media-posting/oauth/{locationId}/facebook/accounts/{accountId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/social-media-posting/oauth/{locationId}/facebook/accounts/{accountId}"
payload = { "pages": ["<string>"] }
headers = {
"Authorization": "<authorization>",
"Version": "<version>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)