跳到正文
TakoAPI
返回技能列表

platform-api-connector

由 brandonwadepackard-cell 提供

Coding Agents & IDEs
285下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Connect to social media and content platform APIs by navigating developer portals, creating apps, obtaining OAuth.

描述

该技能的功能

Handles API credential setup for Facebook, Instagram, YouTube, Twitter/X, and TikTok. Covers navigating developer portals, completing OAuth flows, storing credentials in a database, and refreshing expired tokens. Includes platform-specific gotchas like Facebook's permanent page token derivation pattern and TikTok's mandatory app review requirement.

Consolidates platform-specific auth gotchas like Facebook's short-lived vs permanent token distinction and TikTok's mandatory demo video review into one reference, rather than piecing together five separate developer documentation sites.

何时使用

  • Setting up YouTube upload API access for a video scheduling tool
  • Obtaining a permanent Facebook Page token for a post automation system
  • Refreshing expired TikTok OAuth tokens without restarting the full auth flow
  • Configuring Twitter/X Read & Write permissions for an auto-posting bot
  • Storing multi-platform credentials in a single database table for a social media manager app

示例工作流

输入

User asks: Set up Facebook and Instagram API access for my content scheduling app

智能体
  1. 1

    Navigate to developers.facebook.com and create a Business-type app with Facebook Login product

  2. 2

    Open Graph API Explorer, request pages_manage_posts and instagram_content_publish scopes, and generate a User Access Token

  3. 3

    Exchange the short-lived user token for a long-lived token via the /oauth/access_token endpoint

  4. 4

    Call /me/accounts to retrieve the permanent Page Access Token derived from the long-lived user token

  5. 5

    Call /{page_id}?fields=instagram_business_account to get the Instagram Business Account ID and store all credentials in platform_connections

输出

Credentials stored with a permanent page_access_token and ig_user_id, ready for Facebook Graph API and Instagram Content Posting API calls

前置要求

  • Facebook Developer account at developers.facebook.com
  • Google Cloud project with YouTube Data API v3 enabled at console.cloud.google.com
  • Twitter/X Developer account at developer.x.com
  • TikTok developer account at developers.tiktok.com

安装

clawhub install brandonwadepackard-cell/platform-api-connector

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接