Files
conversation-history/SquareMCP/Social Platform Integration Status.md
T

151 lines
5.0 KiB
Markdown

# Social Platform Integration Status
Last updated: 2026-05-15
---
## Overview
| Platform | OAuth | Read | Post Text | Post Image | Post Video | Status |
|---|---|---|---|---|---|---|
| **LinkedIn** | N/A (token) | ✅ Profile | ✅ | ✅ | ✅ | 🟢 Live |
| **Twitter/X** | N/A (token) | ✅ | ✅ | ✅ | ✅ | 🟢 Live |
| **Telegram** | N/A (bot token) | ✅ | ✅ | N/A | N/A | 🟢 Live |
| **Discord** | Bot token | ✅ | ✅ | N/A | N/A | 🔴 Needs credentials |
| **TikTok** | ✅ Login Kit | ✅ Profile/Stats | N/A | N/A | ✅ | 🟢 Live (sandbox) |
| **Facebook** | Page token | ✅ Page/Posts | ✅ | ✅ | ✅ | 🟢 Live |
| **Instagram** | Graph API | ✅ Profile/Media | ✅ | N/A | ✅ Reels | 🔴 Needs credentials |
| **WhatsApp** | Meta Cloud API | ✅ Templates | ✅ Text/Template | N/A | N/A | 🟡 Needs business creds |
| **Snapchat** | N/A | N/A | N/A | N/A | N/A | ⚪ Not implemented |
| **Slack** | Bot token | ✅ Channels/Messages | ✅ | N/A | N/A | 🟡 Needs credentials |
---
## LinkedIn
- **Token type:** OAuth 2.0 user access token
- **Env var:** `LINKEDIN_DEFAULT_ACCESS_TOKEN`
- **Scopes:** `openid`, `profile`, `w_member_social`
- **Endpoints:**
- `GET /api/linkedin/profile`
- `POST /api/linkedin/post`
- `POST /api/linkedin/image`
- `POST /api/linkedin/video`
---
## Twitter/X
- **Token type:** OAuth 1.0a / OAuth 2.0
- **Env var:** `TWITTER_DEFAULT_ACCESS_TOKEN`
- **Endpoints:**
- `POST /api/twitter/tweet`
- `POST /api/twitter/image`
- `POST /api/twitter/video`
---
## Telegram
- **Token type:** Bot token
- **Env var:** `TELEGRAM_DEFAULT_BOT_TOKEN`
- **Endpoints:**
- `POST /api/telegram/send`
- `GET /api/telegram/updates`
---
## Discord
- **Token type:** Bot token
- **Env vars needed:** `DISCORD_DEFAULT_BOT_TOKEN`
- **Endpoints (registered but failing):**
- `GET /api/discord/me`
- `GET /api/discord/guilds`
- `GET /api/discord/channels`
- `POST /api/discord/message`
- `GET /api/discord/messages`
**Action:** Create bot at [discord.com/developers/applications](https://discord.com/developers/applications)
---
## TikTok
- **OAuth:** Login Kit + Content Posting API
- **Client key:** `sbawiuu2r1tmxm4wd5`
- **Redirect URI:** `https://tiktok.squaremcp.com/auth/tiktok/callback`
- **Scopes:** `user.info.basic`, `user.info.profile`, `user.info.stats`, `video.list`, `video.publish`
- **Sandbox account:** garfieldheron
- **Limitation:** Posts are `SELF_ONLY` until app review approval
- **Endpoints:**
- `GET /auth/tiktok/start`
- `GET /auth/tiktok/callback`
- `GET /api/tiktok/profile`
- `GET /api/tiktok/creator-info`
- `POST /api/tiktok/video`
- `POST /api/tiktok/video/status`
---
## Facebook
- **Token type:** Page Access Token
- **Env vars:** `FACEBOOK_DEFAULT_ACCESS_TOKEN`, `FACEBOOK_DEFAULT_PAGE_ID`
- **Page:** Squaremcp (ID: `1152192567968569`)
- **Permissions:** `pages_show_list`, `pages_read_engagement`, `pages_manage_posts`
- **Note:** `GET /feed` fails — use `/published_posts` for reading
- **Note:** Photo posts require JPG/PNG/GIF/TIFF/HEIF/WebP (no SVG)
- **Endpoints:**
- `GET /api/facebook/page`
- `GET /api/facebook/posts`
- `POST /api/facebook/post`
- `POST /api/facebook/photo`
- `POST /api/facebook/video`
---
## Instagram
- **Token type:** Instagram Graph API (via Facebook)
- **Env vars needed:** `INSTAGRAM_DEFAULT_ACCESS_TOKEN`, `INSTAGRAM_DEFAULT_BUSINESS_ACCOUNT_ID`
- **Requirements:** Business/Creator account connected to Facebook Page
- **Endpoints (registered but failing):**
- `GET /api/instagram/profile`
- `GET /api/instagram/media`
- `POST /api/instagram/post`
- `POST /api/instagram/reel`
**Action:** Get token from Facebook Developer Console with `instagram_basic` + `instagram_content_publish` scopes
---
## WhatsApp
- **Token type:** Meta Cloud API
- **Env vars:** `WHATSAPP_DEFAULT_ACCESS_TOKEN`, `WHATSAPP_DEFAULT_PHONE_NUMBER_ID`, `WHATSAPP_DEFAULT_BUSINESS_ACCOUNT_ID`
- **Limitation:** Freeform messages only within 24-hour window; templates work anytime
- **Endpoints:**
- `POST /api/whatsapp/send`
- `POST /api/whatsapp/template`
- `GET /api/whatsapp/templates`
---
## Credential Inventory
| Platform | Env Var | Set in K8s | Value Source |
|---|---|---|---|
| LinkedIn | `LINKEDIN_DEFAULT_ACCESS_TOKEN` | ✅ | Developer Portal |
| Twitter/X | `TWITTER_DEFAULT_ACCESS_TOKEN` | ❌ | Not set |
| Telegram | `TELEGRAM_DEFAULT_BOT_TOKEN` | ✅ | BotFather |
| Discord | `DISCORD_DEFAULT_BOT_TOKEN` | ❌ | **NEEDED** |
| TikTok | `TIKTOK_DEFAULT_ACCESS_TOKEN` | ✅ | Sandbox OAuth |
| Facebook | `FACEBOOK_DEFAULT_ACCESS_TOKEN` | ✅ | Page Token |
| Facebook | `FACEBOOK_DEFAULT_PAGE_ID` | ✅ | Page Settings |
| Instagram | `INSTAGRAM_DEFAULT_ACCESS_TOKEN` | ❌ | **NEEDED** |
| Instagram | `INSTAGRAM_DEFAULT_BUSINESS_ACCOUNT_ID` | ❌ | **NEEDED** |
| WhatsApp | `WHATSAPP_DEFAULT_ACCESS_TOKEN` | ✅ | Meta Business |
| WhatsApp | `WHATSAPP_DEFAULT_PHONE_NUMBER_ID` | ✅ | Meta Business |
| WhatsApp | `WHATSAPP_DEFAULT_BUSINESS_ACCOUNT_ID` | ✅ | Meta Business |