curl --request PUT \
--url https://app.base44.com/api/apps/{app_id}/social-calendar/publish-readiness/facebook-page \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"page_id": "110494725341826"
}
'import requests
url = "https://app.base44.com/api/apps/{app_id}/social-calendar/publish-readiness/facebook-page"
payload = { "page_id": "110494725341826" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({page_id: '110494725341826'})
};
fetch('https://app.base44.com/api/apps/{app_id}/social-calendar/publish-readiness/facebook-page', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.base44.com/api/apps/{app_id}/social-calendar/publish-readiness/facebook-page",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'page_id' => '110494725341826'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.base44.com/api/apps/{app_id}/social-calendar/publish-readiness/facebook-page"
payload := strings.NewReader("{\n \"page_id\": \"110494725341826\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://app.base44.com/api/apps/{app_id}/social-calendar/publish-readiness/facebook-page")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"page_id\": \"110494725341826\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/social-calendar/publish-readiness/facebook-page")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"page_id\": \"110494725341826\"\n}"
response = http.request(request)
puts response.read_body{
"facebook_page_missing": false,
"facebook_pages": [
{
"id": "110494725341826",
"name": "Blue Bottle Coffee"
},
{
"id": "204918334512077",
"name": "Blue Bottle Roasters"
}
],
"facebook_page_id": "110494725341826",
"facebook_page_needs_choice": false
}Choose the social calendar Facebook Page
Sets the Facebook Page the app’s Facebook posts publish to, and returns the readiness after the change.
Send one of facebook_pages[].id from
Get social calendar publish readiness.
Posts that were waiting for the choice (needs_reconnect) are handed back to the publisher, so
run Start scheduling posts again for any that should go out.
Choosing another Page later moves future posts to it; posts already published stay where they are.
Authenticate with a user bearer token or a personal API key. You need editor access to the app. Social calendar access must be enabled for your account. This API is in developer preview (beta).
Responses include X-Request-Id. Once authentication passes, rate-limit responses include
X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (Unix seconds).
Wait for Retry-After before retrying a rate-limited request.
Shares a base limit of 20 requests per minute per requester and app with creating, editing, deleting and approving posts.
curl --request PUT \
--url https://app.base44.com/api/apps/{app_id}/social-calendar/publish-readiness/facebook-page \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"page_id": "110494725341826"
}
'import requests
url = "https://app.base44.com/api/apps/{app_id}/social-calendar/publish-readiness/facebook-page"
payload = { "page_id": "110494725341826" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({page_id: '110494725341826'})
};
fetch('https://app.base44.com/api/apps/{app_id}/social-calendar/publish-readiness/facebook-page', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.base44.com/api/apps/{app_id}/social-calendar/publish-readiness/facebook-page",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'page_id' => '110494725341826'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.base44.com/api/apps/{app_id}/social-calendar/publish-readiness/facebook-page"
payload := strings.NewReader("{\n \"page_id\": \"110494725341826\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://app.base44.com/api/apps/{app_id}/social-calendar/publish-readiness/facebook-page")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"page_id\": \"110494725341826\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/apps/{app_id}/social-calendar/publish-readiness/facebook-page")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"page_id\": \"110494725341826\"\n}"
response = http.request(request)
puts response.read_body{
"facebook_page_missing": false,
"facebook_pages": [
{
"id": "110494725341826",
"name": "Blue Bottle Coffee"
},
{
"id": "204918334512077",
"name": "Blue Bottle Roasters"
}
],
"facebook_page_id": "110494725341826",
"facebook_page_needs_choice": false
}Authorizations
Personal access token, sent as Authorization: Bearer <token>. Each operation lists the permission it needs: read_only or full_access. A full-access token can call every operation. A read-only token can call only the operations that list read_only; anything else returns 403 read_only_credential_route_not_allowed.
Scopes
Headers
Body
Response
The publish readiness with the chosen Page.
Connected accounts Base44 still can't publish to, and the Facebook Page posts go to.
Was this page helpful?