Zernio icon

Zernio

Schedule and manage social media posts across multiple platforms with Zernio - supporting Twitter/X, Instagram, Facebook, LinkedIn, TikTok, YouTube, Threads, Bluesky, Pinterest, Reddit, Telegram, Google Business, and Snapchat

Actions115

Connect Platform → Complete OAuth Callback

AI-generated

Summary

Complete the OAuth authorization process by exchanging the provided authorization code and state for access credentials to connect a specified social media platform account to a user profile.

Inputs

  • Platform (required) — Select the social media platform (e.g., Twitter/X, Instagram, Facebook, LinkedIn, TikTok, YouTube, Threads, Bluesky, Pinterest, Reddit, Telegram, Google Business, Snapchat) to connect.
  • Profile ID (required) — The identifier of the profile in your system where the connected social media account will be associated. Obtain profile IDs from the 'Profiles > List' operation.
  • Code (required) — The OAuth authorization code returned by the social media platform's authorization server as part of the OAuth 2.0 flow.
  • State (required) — The OAuth state parameter to validate the callback and prevent CSRF attacks; for Bluesky, this must use the format '{userId}-{profileId}'.

Output shape

a single record containing the authenticated account's connection details and access credentials.

The result includes tokens or credentials associating the selected platform account to the specified profile. This operation finalizes the OAuth connection process initiated by a prior 'getConnectUrl' operation. Use with care to ensure the 'code' and 'state' parameters are obtained from the platform's redirect response to the OAuth authorization request.

Links

Discussion