Social Media Manager
Social Media Integration Guide
Step-by-step instructions to connect Facebook Pages, Instagram Business, LinkedIn Company Pages, Twitter/X, Telegram Channels, and YouTube to your CRM.
Facebook Page & Instagram Business
Connect your Meta Developer App to publish posts, manage comments, and track analytics for Facebook Pages and Instagram Business accounts.
1
Prerequisites
Before you begin, make sure you have:
- A personal Facebook account with admin access to the Facebook Page
- An Instagram account set to Professional (Business or Creator) and linked to the Facebook Page
- A Meta Developer account
- HTTPS CRM domain, Privacy Policy URL, Terms of Service URL, and Data Deletion URL
Important: Instagram Business API only works through a connected Facebook Page. If your Instagram is not linked to a Page, the CRM cannot connect it.
2
Create Meta Developer App
- Go to developers.facebook.com and login
- Click "My Apps" → "Create App"
- Select a suitable app type for social media integration
- Enter app name and contact email
- Link to your Meta Business Portfolio if prompted
- Click Create App
3
Get App ID & App Secret
- In your Developer App, go to App Settings → Basic
- Copy the App ID
- Click "Show" next to App Secret, enter your Facebook password, and copy it
- In CRM, go to Social Media → API Settings
- Paste both values under the Facebook section and click Save
Security: Never expose the App Secret in frontend code. Store it securely on the server side only.
4
Configure App Domain & Website
- In App Settings → Basic, add your CRM domain under App Domains (e.g.,
yourdomain.com) - Add your Privacy Policy URL, Terms of Service URL, and Data Deletion URL
- Add the website platform if required
- Click Save Changes
Note: Production URLs must use HTTPS. HTTP or localhost URLs are only for development.
5
Configure Facebook Login / OAuth
- In your Developer App, add or open the Facebook Login product
- Go to Facebook Login → Settings
- Enable Client OAuth Login and Web OAuth Login
- Open your CRM → Social Media → API Settings
- Copy the Facebook OAuth Redirect URL shown there
- Paste it into Valid OAuth Redirect URIs in the Meta Developer App
- Click Save Changes
Critical: The callback URL must exactly match — including http/https, trailing slashes, and casing. Even a single character difference causes OAuth failures.
6
Required Permissions
Go to App Review → Permissions and Features and request Advanced Access for each permission below:
| Permission | Purpose | Required For |
|---|---|---|
pages_show_list | Show managed Facebook Pages | Page selection |
pages_read_engagement | Read page content/engagement | Analytics & inbox |
pages_manage_posts | Publish scheduled posts | Publishing |
pages_manage_metadata | Manage webhooks/settings | Setup |
instagram_basic | Read Instagram profile info | Instagram connection |
instagram_content_publish | Publish Instagram content | Instagram posting |
instagram_manage_comments | Manage Instagram comments | Instagram inbox |
public_profile | Get user basic info | Login |
email | Get user email | Login |
7
Connect Instagram to Facebook Page
- Open your Facebook Page → Settings
- Go to Linked Accounts or the Instagram section
- Click Connect Instagram and login
- Ensure your Instagram is a Professional account (Business or Creator)
- Confirm the connection
8
Connect Account from CRM
- In CRM, go to Social Media → Accounts
- Click Connect Account → choose Facebook or Instagram
- Click Authorize Connection
- Login with the Facebook account that has Page admin access
- Select the required Page and grant permissions
- Confirm the account appears in your Social Media → Accounts list
Done! Your Facebook Page and Instagram Business account are now connected. You can start publishing and scheduling posts!
Troubleshooting — Facebook & Instagram
| Problem | Possible Reason | Solution |
|---|---|---|
| Login redirect error | Callback URL mismatch | Copy exact OAuth URL from CRM and paste in Meta |
| App ID invalid | Wrong App ID | Re-copy from App Settings → Basic |
| Page not showing | Not a Page admin | Login with the Page admin account |
| Instagram not showing | Not connected to Facebook Page | Connect Instagram to Page first (Step 7) |
| Cannot publish posts | Missing permission | Request pages_manage_posts or instagram_content_publish |
| Works only for admin | App in development mode | Switch app to Live Mode after approval |
Telegram Channel / Group
Create a Telegram Bot and connect your Channels or Groups for content publishing.
1
Prerequisites
- A Telegram personal account
- Admin access to the Channel or Group you want to connect
- Ability to message @BotFather on Telegram
2
Create a Telegram Bot
- Open Telegram and search for @BotFather
- Start a chat and send
/newbot - Provide a Name for your bot
- Provide a unique Username (must end in
bot, e.g.,my_crm_bot) - BotFather will give you a Bot Token (e.g.,
123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11) - Copy this token securely
3
Add Bot to Channel / Group as Admin
- Go to your Telegram Channel/Group settings → Administrators
- Click Add Admin and search for your bot's username
- Add it as an administrator with Post Messages permission
4
Get Your Chat ID
- Forward any message from your channel/group to @RawDataBot or @userinfobot
- The bot will reply with details — look for the
idfield underchat - Copy the Chat ID (usually starts with
-100...for channels/groups)
5
Connect from CRM
- Go to Social Media → Accounts → Connect Account → Telegram
- Paste your Bot Token and Chat ID
- Click Connect / Save
Done! Your Telegram Channel/Group is now connected for content publishing.
Troubleshooting — Telegram
| Problem | Possible Reason | Solution |
|---|---|---|
| Messages not delivering | Bot is not an admin | Add bot as admin with posting rights |
| Chat ID not found | Wrong format | Include the minus sign (-100...) |
| Invalid token error | Token copied incorrectly | Copy exact token from @BotFather without extra spaces |
LinkedIn Company Page
Connect your LinkedIn Developer App to publish posts to Company Pages.
1
Prerequisites
- LinkedIn personal account with admin access to the Company Page
- HTTPS CRM domain
2
Create LinkedIn Developer App
- Go to LinkedIn Developer Portal and sign in
- Click My Apps → Create App
- Fill in App Name, link to your LinkedIn Company Page, upload a logo
- Agree to terms and click Create App
3
Request Required Products
- In your App dashboard, go to the Products tab
- Request Sign In with LinkedIn using OpenID Connect
- Request Share on LinkedIn
- Wait for approval (usually instant for standard products)
4
Configure OAuth Redirect URL
- Go to the Auth tab in your App
- Under OAuth 2.0 settings, find "Authorized redirect URLs"
- Add your CRM's OAuth Callback URL (found in CRM → Social Media → API Settings)
- Save settings
The redirect URL must exactly match your CRM's domain. Ensure it uses HTTPS.
5
Get Client ID & Client Secret
- In the Auth tab, find Application credentials
- Copy the Client ID
- Reveal and copy the Client Secret
6
Connect from CRM
- Go to Social Media → API Settings and paste Client ID / Secret under LinkedIn, then Save
- Go to Social Media → Accounts → Connect Account → LinkedIn
- Sign in with the LinkedIn account that has Page Super Admin access
- Grant permissions to complete authorization
Troubleshooting — LinkedIn
| Problem | Possible Reason | Solution |
|---|---|---|
| OAuth redirect error | Callback URL mismatch | Ensure redirect URL matches exactly (including https) |
| Cannot post to page | Missing API products | Request "Share on LinkedIn" in developer portal |
| Page not showing | Not an admin | Ensure Super Admin access to Company Page |
Twitter / X
Connect your Twitter Developer App to publish tweets and manage your X account.
1
Prerequisites
- An active X (Twitter) account with email and phone verified
- Access to the Twitter Developer Portal
- HTTPS CRM domain
2
Create Twitter Developer App
- Go to the Twitter Developer Portal
- Sign up for a Free or Basic tier developer account
- Under Projects & Apps, create a new Project and App
- Give your App a unique name
3
Configure User Authentication
- In App settings, find User authentication set up → click Edit
- Enable OAuth 2.0
- Under Type of App, select Web App, Automated App or Bot
- Under App permissions, select Read and write
4
Configure Callback URL
- Under Callback URI / Redirect URL, enter your CRM OAuth callback URL (from CRM → Social Media → API Settings)
- Under Website URL, enter your main domain
- Save settings
5
Get Client ID & Client Secret
- Go to the Keys and tokens tab
- Find OAuth 2.0 Client ID and Client Secret
- Copy both values
Important: Use the OAuth 2.0 Client ID/Secret, NOT the Consumer Keys (API Key and Secret).
6
Connect from CRM
- Go to Social Media → API Settings and paste under Twitter section, then Save
- Go to Social Media → Accounts → Connect Account → Twitter
- Authorize via the Twitter popup
Troubleshooting — Twitter
| Problem | Possible Reason | Solution |
|---|---|---|
| Authentication failed | Using wrong keys | Use OAuth 2.0 keys, not API Consumer Keys |
| Cannot post tweets | Read-only permissions | Set permissions to "Read and write" |
| Redirect URI mismatch | Callback URL error | Verify exact callback URL from CRM is in the dev portal |
YouTube Data API v3
Connect your YouTube Channel via Google Cloud Console for video publishing and management.
1
Prerequisites
- A Google Account with a YouTube Channel
- Access to Google Cloud Console
- HTTPS CRM domain
2
Google Cloud Console Setup
- Go to Google Cloud Console
- Create a New Project
- Search for YouTube Data API v3 and click Enable
3
Configure OAuth Consent Screen
- Go to APIs & Services → OAuth consent screen
- Choose External User Type → Create
- Fill in App name, support email, and developer contact email
- Optionally add YouTube API scopes
- Add test user emails (required while app is in "Testing" mode)
- Click Save and Continue through all steps
4
Create OAuth Credentials
- Go to APIs & Services → Credentials
- Click + Create Credentials → OAuth client ID
- Select Web application
- Under Authorized redirect URIs, add your CRM's callback URL
- Click Create
- Copy the Client ID and Client Secret
5
Connect from CRM
- Go to Social Media → API Settings and paste under YouTube section, then Save
- Go to Social Media → Accounts → Connect Account → YouTube
- Authorize via the Google popup
Troubleshooting — YouTube
| Problem | Possible Reason | Solution |
|---|---|---|
| "App not verified" error | Consent screen in Testing mode | Only added test users can authenticate. Publish the app for public access. |
| Redirect URI mismatch | Callback URL error | Ensure exact redirect URI matches in Google Cloud Console |
| API not enabled | YouTube Data API v3 not turned on | Search and enable the API in your Cloud project |