Skip to main content

ocoya_get_social_connection_url

Returns an Ocoya URL that starts connecting a social network to a workspace. The user opens the URL in a browser, approves the social network OAuth flow, then selects the profiles to connect. Instagram Business uses Facebook authentication first, then returns to the Instagram profile selection step.

Arguments

NameTypeRequiredDescription
workspaceIdstringYesWorkspace ID from ocoya_list_workspaces.
providerstringYesOne of facebook, instagram, twitter, linkedin, pinterest, or tiktok.

Example

{
  "name": "ocoya_get_social_connection_url",
  "arguments": {
    "workspaceId": "cmayvq3hk00017apshay5qezu",
    "provider": "instagram"
  }
}

Returns

Returns authUrl, callbackUrl, the requested provider, and the OAuth authProvider used to start the flow. Open authUrl in a browser while signed in to Ocoya.