v1Ressources/Connexions/getObtenir une URL de connexion Facebook
Obtenir une URL de connexion Facebook
Renvoie une URL d'autorisation OAuth Facebook à ouvrir dans un navigateur pour connecter la Page Facebook de cet emplacement. Cet endpoint ne peut pas terminer la connexion lui-même — l'écran de consentement Facebook nécessite un humain interactif.
get
connections:write/api/v1/connections/facebook/connect-urlParamètres de requête
locationIdstringobligatoire
L'emplacement à connecter.
clientIdstringfacultatif
Le client de l'emplacement. Nécessaire uniquement pour lever une ambiguïté lorsque votre clé est limitée à des clients spécifiques.
returnUrlstringfacultatif
Chemin interne de l'application où atterrir après que l'humain a terminé l'écran de consentement. Par défaut, "/".
successUrlstringfacultatif
Où le navigateur du client est envoyé après une connexion réussie. Doit être enregistrée sur la clé d'API et fournie avec errorUrl.
errorUrlstringfacultatif
Où le navigateur est envoyé si la connexion échoue ou est annulée. Même règle d'enregistrement, et fournie avec successUrl.
Réponse
dataobjectfacultatif
providerstring (google | facebook | apple)facultatif
Quel publisher cette URL connecte : google, facebook ou apple.
locationIdstringfacultatif
L'emplacement auquel cette connexion est associée, ou null lorsque la connexion a été démarrée avec un clientId.
clientIdstringfacultatif
Le client auquel cette connexion est limitée, ou null.
urlstringfacultatif
L'URL d'autorisation — à ouvrir dans un navigateur sous le contrôle du titulaire du compte.
successUrlstringfacultatif
La successUrl utilisée pour cet appel, ou null en mode hérité.
errorUrlstringfacultatif
L'errorUrl utilisée pour cet appel, ou null en mode hérité.
notestringfacultatif
Indications pour ouvrir l'URL. Explique le relais partenaire lorsque successUrl et errorUrl sont définies, ou le flux d'interrogation de GET /api/v1/connections sinon.
Erreurs
400Il manque un paramètre requis à la requête, ou elle est invalide.
401Clé API manquante, invalide, expirée ou révoquée.
403La clé n'a pas la permission requise, ou n'est pas autorisée pour ce client/établissement.
429Trop de requêtes. Réessayez après le nombre de secondes indiqué dans l'en-tête Retry-After.
get/api/v1/connections/facebook/connect-url
Votre clé 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."
}
}Guides qui utilisent cette ressource
- 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.