Social media connection guide
Last updated: 10/06/2026
Step-by-step instructions so VIRALHUB can post to your Facebook Page, Instagram, TikTok and YouTube for you. Do it once per platform; after that you just pick a channel and click Post.
Overview
Each platform only lets outside software post through an app registered with them. VIRALHUB currently connects through an app you create yourself on the Facebook/TikTok developer site: the app belongs to you and you grant permissions to yourself, so there is no need to wait for platform review.
| Platform | How to connect | Can post |
|---|---|---|
| Facebook Page | Your own Meta App | Text, images, videos, Reels · first comment · comment management, insights |
| Shares the Meta App with your Page | Images, videos (Reels) · first comment | |
| TikTok | Your own TikTok App | Video · private mode or send to drafts (see limits) |
| YouTube | Paste a token manually | Experimental — automatic posting not available yet |
What is the Redirect URI and where do I get it?
It is the address Facebook/TikTok sends you back to after you approve the permissions. Platforms only accept addresses that were registered in the app beforehand. The exact value is shown in the Connect … window on the Publishing page, with a Copy button — always copy it from there, never type it by hand.Connect a Facebook Page
What you need
- A Facebook account that is an admin of the Page you want to post to.
- A Meta developer account: go to developers.facebook.com, log in with that same Facebook account and register as a developer (free).
Steps
Create a Meta App
Go to developers.facebook.com/apps → Create app. Choose the use case for managing a Page and the Business app type, and give it any name (e.g. “My VIRALHUB”).
Enable all permissions in Use cases
In the app dashboard → Use cases → the Page management use case → Customize, enable all 6 permissions:
pages_show_listpages_read_engagementpages_manage_postspages_manage_engagementpages_read_user_contentread_insightsDon’t miss pages_read_user_content
Meta adds this permission to the login request automatically. If it is not enabled, Facebook shows “This content isn’t available right now” (Invalid Scopes) and blocks the whole consent screen.Register the Redirect URI
On the VIRALHUB Publishing page, open Manage channels → Connect Facebook and click Copy on the Redirect URI line.
In the Meta App → Facebook Login → Settings → paste it into Valid OAuth Redirect URIs → Save changes.
Required
Without this step Facebook shows “URL Blocked” and cannot return to VIRALHUB, even if the App ID/Secret are correct.Get the App ID and App Secret
Meta App → App settings → Basic: copy the App ID and click Show to copy the App Secret.
Save the app in VIRALHUB
Paste the App ID + App Secret into the Connect Facebook window → Save app. VIRALHUB verifies the key pair with Meta as soon as you save.
Log in and choose your Pages
On the row of the app you just saved, click Connect Facebook → log in, select the Pages you want to grant access to → approve.
Back in VIRALHUB, click + Fetch pages → tick your Pages → Add selected channels. The Pages appear under Choose channels.
Do I need to switch the app to Live mode?
Not required. In Development mode, only people with a role in the app (under App roles) can log in — you are the app admin, so that is enough. If several people manage it, add them to App roles. To switch to Live, Meta requires a Privacy Policy URL, Category and App Domains.
How long does the connection last?
Page tokens do not expire. The connection is only lost if you change your Facebook password, remove the app’s permissions, or delete the app. When that happens the channel card shows Expired · Reconnect — just click it.Connect Instagram
Instagram uses the same Meta App as your Page — finish the Facebook Page section first.
What you need
- An Instagram Business or Creator account — in the Instagram app: Settings → Account type and tools.
- The Instagram account is linked to your Page (Instagram → Settings → Page, or Page settings → Linked accounts).
Steps
Add the Instagram use case to the Meta App
Meta App → Use cases → Add use case → Manage messaging & content on Instagram (Instagram API with Facebook Login).
Enable the permissions:
instagram_basicinstagram_content_publishinstagram_manage_commentsEnable Instagram in VIRALHUB
Connect Facebook window → on the app row, click Enable Instagram → log in and approve.
If you click before doing step 1, Facebook shows “Invalid Scopes”. Pages already connected are not affected — do step 1 and click again.Add the Instagram account
Click + Fetch pages: the Instagram account appears right under its linked Page → tick it → Add selected channels.
What Instagram can post
- An image or video is required — Instagram does not accept text-only posts.
- Videos are always posted as Reels (3 seconds – 15 minutes).
- Images are converted to JPEG; images that are too tall/too wide (outside the 4:5 – 1.91:1 ratio) get a blurred background to fit the frame.
- Captions are limited to 2,200 characters (hashtags included) and 30 hashtags.
- Without the
instagram_manage_commentspermission the first comment fails, but the post is still published.
Connect TikTok
What you need
- The TikTok account you want to post videos to.
- A developer account at developers.tiktok.com.
Steps
Create a TikTok App
Go to developers.tiktok.com/apps → Create app, fill in the name, description and icon.
Add the Login Kit and Content Posting API products
In the app → Add products: add Login Kit and Content Posting API; under Content Posting API enable Direct Post.
Enable scopes
user.info.basicvideo.publishvideo.upload— if any scope is missing, TikTok shows a scope error at login.Register the Redirect URI
Copy the Redirect URI from the Connect TikTok window in VIRALHUB → paste it into the app’s Login Kit → Redirect URI.
Required
TikTok requires an exact character-for-character match and only accepts https addresses.Add test accounts (if the app is in Sandbox)
In Sandbox mode only accounts listed under Sandbox → Target users can log in — add your TikTok account there.
Save the app and connect
Copy the Client Key + Client Secret → paste them into the Connect TikTok window → Save app → click Connect TikTok → log in and approve.
One app can connect multiple accounts: click + Add account on the app row.
Limits while the app has not passed TikTok review (audit)
- Direct posting only works with “Only me” visibility, the TikTok account must be private, and at most 5 users can post within 24 hours.
- For public posts: when composing, choose Send to TikTok drafts. The video lands in your TikTok inbox — open the TikTok app, tap the notification, edit if you like, set it to public and post.
- TikTok only accepts videos (3 seconds – 10 minutes), and there is no first comment.
- For each post you must choose who can view it manually — TikTok forbids presetting this, so TikTok posts are not added to the automatic queue.
- The connection renews itself every time VIRALHUB uses it; if nothing is posted for more than 1 year you will need to reconnect.
YouTube (experimental)
Automatic posting not available yet
YouTube is currently connected by pasting a token manually: the token only lasts about 1 hour and the YouTube channel cannot yet be selected in the composer. YouTube also locks every video uploaded from an app not yet verified by Google to private. In the meantime, the most reliable option is to download the video and upload it in YouTube Studio.If you still want to try connecting
Get an Access Token
Open Google OAuth Playground → select the scope
https://www.googleapis.com/auth/youtube.upload→ Authorize APIs → log in to your YouTube channel → Exchange authorization code for tokens → copy the Access token.Get the Channel ID
YouTube Studio → Settings → Channel → Advanced settings: copy the channel ID in the form
UC….Add the channel
Publishing page → Manage channels → Connect YouTube: choose the YouTube platform, enter the Channel ID, channel name and Access Token → Save channel.
Common errors
›Facebook shows “URL Blocked”
The Redirect URI has not been registered or is off by one character. Copy it again from the Connect Facebook window, paste it into Facebook Login → Settings → Valid OAuth Redirect URIs and click Save changes.
›Facebook shows “This content isn’t available right now”
Cause #1: the pages_read_user_content permission is not enabled in the app’s Use cases (see Facebook Page step 2). Another cause: the app is in Development mode and the account logging in has no role under App roles.
›Clicked “Fetch pages” but the Page is missing
You did not select that Page on Facebook’s consent screen. Click Reconnect on the app row and tick all the Pages.
›The Instagram account does not show up under “Fetch pages”
The Instagram account is not Business/Creator, is not linked to the Page, or you have not clicked Enable Instagram.
›The channel card shows “Expired · Reconnect”
You changed your password, removed the app’s permissions or deleted the app on Facebook/TikTok. Click Reconnect on the channel card.
›TikTok reports a scope or redirect_uri error
Check that the app has all 3 scopes enabled and that the Redirect URI was pasted exactly, including https.
›TikTok says it can only post to private accounts
The app has not passed TikTok review: switch the TikTok account to private, or choose Send to TikTok drafts when composing.
›The post was published but the “first comment” failed
The Page is missing the pages_manage_engagement permission; Instagram is missing instagram_manage_comments. Enable the permission in the app, then click Reconnect.
Security & disconnecting
- App Secret, Client Secret and tokens are encrypted before being stored and are never shown again after you click Save.
- VIRALHUB only uses these permissions to publish posts and read comments and insights for the channels you selected.
- Disconnecting a channel or deleting an app in Manage channels removes the corresponding token from VIRALHUB. To fully revoke access on the platform side, remove the app in your Facebook settings (Apps and websites) or TikTok settings (Security → Manage apps).
See also our Privacy Policy and User Data Deletion. Need help: datlv10@gmail.com or 0357183517 (phone/Zalo).