Facebook PagesFacebookSocial

Publish a photo to your Facebook Page, or stage one

facebook.facebook.page.photo.create

Publish a photo to your Facebook Page, or stage one for a multi-photo post

Price
freePelo preço do provedor
Success rate
100%Last 30 days · 425 calls
Latency p50
2.3 sp95 5.5 s
Last verified
—Not verified yet
POSThttps://toolswitch.dev/v1/tools/facebook.facebook.page.photo.createPreview
Try onlineEm breveProvider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parâmetros

needs pages_manage_posts and the Page token (select this Page on the connection). For a multi-photo post: call this once per photo with published=false, collect the ids, then call facebook.page.post.create with attached_media=[{"media_fbid": "<id>"}, …]. Meta caps a feed post at 10 attached photos

ParâmetroTipoObrigatórioDescriçãoExemplo
Parâmetros de caminho
page_idstringObrigatórionumeric id of the Page selected on the connection123456789012345
  • Parâmetros de caminho
  • page_idstringObrigatório

    numeric id of the Page selected on the connection

    Exemplo: 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.photo.create' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

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.