Skip to main content

Connect Social Accounts

OmniSocial supports Facebook, Instagram, and TikTok. Each connected account enables publishing, analytics, conversation management, and ad integration from a single dashboard.


How to Connect​

  1. Navigate to Settings > Social Accounts (or the Accounts page)
  2. Click Connect Account
  3. Select the platform
  4. Complete the OAuth 2.0 authorization flow
  5. Select which pages/accounts to manage
  6. The account appears in your connected accounts list

Platform Requirements​

PlatformAccount TypeRequirementsKey Permissions
FacebookPageAdmin access to the Pagepages_manage_posts, pages_read_engagement, pages_messaging
InstagramBusiness or CreatorMust be linked to a Facebook Pageinstagram_basic, instagram_content_publish, instagram_manage_comments
TikTokPersonal, Creator or BusinessAny TikTok accountuser.info.basic, video.list, video.publish, video.upload
Important for Instagram

Instagram Business/Creator accounts must be linked to a Facebook Page to work with the Meta Graph API. If your Instagram account isn't linked, connect it first through your Instagram app settings under Settings > Account > Linked Accounts.

What to expect from TikTok​

FeatureSupported
PublishingVideo only, uploaded directly to TikTok
AnalyticsViews, likes, comments and shares for public videos
Comments and DMs in the Unified InboxNo. TikTok does not offer them to connected apps
TikTok posts start out private

Until TikTok approves the UniPulse app, every video is published as private (visible only to you). TikTok shares no analytics for private videos, so their metrics stay empty. They appear automatically once a video is public.


What Gets Stored​

When you authorize a social account, OmniSocial securely stores:

DataPurpose
Access TokenEncrypted at rest with AES-256-GCM
Refresh TokenEncrypted, used for automatic token renewal
Platform User IDUnique identifier on the platform
Platform UsernameYour handle/page name
Display Name & AvatarFor identification in the UI
Granted ScopesThe specific permissions you authorized
Token ExpiryTracked to trigger refresh before expiration
MetadataPlatform-specific configuration (JSON)

Each account is uniquely identified by [userId, platform, platformUserId] -- preventing duplicate connections.


Automatic Token Management​

Social platform tokens expire periodically. OmniSocial handles this transparently:

  1. Background monitoring -- The token-refresh queue continuously checks for expiring tokens
  2. Auto-refresh -- Tokens are refreshed before they expire using the stored refresh token
  3. Expiry tracking -- The tokenExpiresAt field is monitored per account
  4. Re-auth alerts -- If auto-refresh fails (e.g., permissions revoked), you'll see a warning banner
  5. Last synced -- Each account shows lastSyncedAt so you know it's active

Managing Accounts​

From Settings > Social Accounts:

ActionDescription
View StatusSee if the account is active, when it was last synced
ReconnectRe-authorize if the token has expired or permissions changed
DisconnectRemove the account (already-published posts are unaffected)
View DetailsSee platform-specific metadata

Multiple Accounts​

You can connect multiple accounts per platform. For example:

  • 3 Facebook Pages for different brands
  • 2 Instagram Business accounts
  • 1 TikTok Business account

The maximum number of connected accounts depends on your subscription plan.


Security​

  • All OAuth tokens encrypted with AES-256-GCM using a 64-character hex encryption key
  • Encryption key stored as an environment variable, never in the database
  • Tokens are never exposed in API responses
  • Disconnecting immediately removes stored tokens
  • Each workspace's tokens are isolated from other workspaces

Next Steps​

With your accounts connected, you're ready to create your first post.