Publish a video or Reel to your Facebook Page
facebook.facebook.page.video.createPublish a video or Reel to your Facebook Page
- Price
- freePelo preço do provedor
- Success rate
- 100%Last 30 days · 1.780 calls
- Latency p50
- 5.1 sp95 7.1 s
- Last verified
- —Not verified yet
POSThttps://toolswitch.dev/v1/tools/facebook.facebook.page.video.createPreviewTry onlineEm breveProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
ask for fields=id,permalink_url in the query string — the response otherwise carries only an id, and there is no other way to get the post's URL. The call returns as soon as Meta accepts the URL: the video is still TRANSCODING, and GET /{video_id}?fields=status reports when it is ready. A short vertical video is auto-classified as a Reel and appears at facebook.com/reel/{id}
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de caminho | ||||
page_id | string | Obrigatório | 123456789012345 | |
- Parâmetros de caminho
page_idstringObrigatórioExemplo:
123456789012345
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
Preview
curl -X POST 'https://toolswitch.dev/v1/tools/facebook.facebook.page.video.create' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/facebook.facebook.page.video.create",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/facebook.facebook.page.video.create", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a free, incluindo a taxa de serviço.