v1Recursos/Connections/getObter uma URL de conexão do Facebook
Obter uma URL de conexão do Facebook
Retorna uma URL de autorização OAuth do Facebook para abrir em um navegador e conectar a Página do Facebook deste local. Este endpoint não pode concluir a conexão sozinho — a tela de consentimento do Facebook requer um humano interativo.
get
connections:write/api/v1/connections/facebook/connect-urlParâmetros de consulta
locationIdstringobrigatório
O local a conectar.
clientIdstringopcional
O cliente do local. Necessário apenas para desambiguar quando sua chave é limitada a clientes específicos.
returnUrlstringopcional
Caminho interno do app para onde ir após o humano concluir a tela de consentimento. Padrão: "/".
successUrlstringopcional
Para onde o navegador do cliente é enviado após uma conexão bem-sucedida. Deve estar registrada na chave de API e ser fornecida junto com errorUrl.
errorUrlstringopcional
Para onde o navegador é enviado se a conexão falhar ou for cancelada. Mesma regra de registro, e fornecida junto com successUrl.
Resposta
dataobjectopcional
providerstring (google | facebook | apple)opcional
Qual publisher esta URL conecta: google, facebook ou apple.
locationIdstringopcional
O local ao qual esta conexão é pareada, ou null quando a conexão foi iniciada com um clientId.
clientIdstringopcional
O cliente ao qual esta conexão é limitada, ou null.
urlstringopcional
A URL de autorização — abra-a em um navegador sob o controle do proprietário da conta.
successUrlstringopcional
A successUrl usada nesta chamada, ou null no modo legado.
errorUrlstringopcional
A errorUrl usada nesta chamada, ou null no modo legado.
notestringopcional
Orientações para abrir a URL. Explica o repasse de parceiro quando successUrl e errorUrl estão definidas, ou o fluxo de sondagem de GET /api/v1/connections caso contrário.
Erros
400Falta um parâmetro obrigatório na solicitação, ou ela é inválida de outra forma.
401Chave de API ausente, inválida, expirada ou revogada.
403A chave não tem a permissão exigida, ou não está autorizada para este cliente/local.
429Muitas solicitações. Tente novamente após o número de segundos indicado no cabeçalho Retry-After.
get/api/v1/connections/facebook/connect-url
Sua chave de API
locationId *
clientId
returnUrl
successUrl
errorUrl
{
"data": {
"provider": "facebook",
"locationId": "loc_456",
"clientId": null,
"url": "https://www.facebook.com/v19.0/dialog/oauth?client_id=...&redirect_uri=...&scope=...&state=...&response_type=code",
"successUrl": null,
"errorUrl": null,
"note": "Open this URL in a browser under the account owner's control. There is no callback to your integration. Once approved, poll GET /api/v1/connections to see the new connection. Pass successUrl and errorUrl (registered on this key) to have the browser sent back to you with a one-time code instead."
}
}Guias que usam este recurso
- What Is a Business Listings API?A business listings API manages a business's name, address, hours and more across many publishers at once, with sync status and duplicate detection built in.
- Business Listings API: Complete Developer GuideHow a business listings API works and how to create, update, sync and monitor locations across Google, Apple, Bing and directories with the Synup API.
- Google Business Profile API vs a Listings Management APIHow Google's Business Profile API compares with a listings management API on scope, access, sync status, duplicates and reviews, and when to use each.
- How to Add Local Marketing Features to Your SaaSAdd listings management, reviews, Google posts, profile analytics, rank tracking and AI visibility to a SaaS product with the Synup API, tenant by tenant.
- How to Update Business Information Across Google, Apple, Bing and DirectoriesPush one business-information change to Google, Apple, Bing and the directory network through a single API call, and verify it reached each publisher.
- How to Manage Thousands of Business Locations via APIDesign a sync job for thousands of locations on the Synup API with cursor pagination, tags, rate-limit handling, an id map and rollup health checks.
- How Google Business Profile Synchronization WorksGoogle Business Profile sync rests on an owner's OAuth consent, matching a location to the right Google listing, then a write-and-verify loop.
- How to Build a Multi-Location Marketing DashboardBuild a multi-location marketing dashboard from the API's rollup endpoints, one call per panel, covering listings, reviews, rank, AI visibility and duplicates.
- How to Connect and Manage Google Business Profiles via APIConnect a Google Business Profile to a location, match the account's listings, keep the profile in sync and handle reconnects with the Synup API.
- Building Publisher Integrations Directly vs Using SynupWhat it really costs to integrate Google, Apple, Bing and directories yourself, versus one API, and how to decide between them or combine both.