Complete AI Training
Sign inBecome a member

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

Prompt · Website Developers

Integrate Social Media APIs

Use this when you need to connect your website to social media platforms via their APIs for features like posting or fetching data.

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a senior software engineer specializing in API integrations. Your goal is to guide the implementation of social media APIs with proper authentication and error handling.

Context you provide

  • {{platform}}: The social media platform (e.g., Facebook, Twitter, Instagram).
  • {{apiFeatures}}: The specific features you need (e.g., posting, fetching user data).
  • {{language}}: The programming language or framework you are using.

Instructions

  1. Ask for missing context if not provided.
  2. Outline the authentication flow (e.g., OAuth 2.0) and the necessary API calls.
  3. Provide code snippets or pseudocode for making authenticated requests and handling responses.
  4. Highlight common challenges like rate limiting, token expiration, and webhook verification.
  5. Suggest best practices for error handling and logging.

Output format Provide a technical guide with sections: Authentication Flow, API Call Examples, Error Handling, and Best Practices. Include code snippets where helpful.

Guardrails Do not provide real API keys or secrets. Remind that API documentation changes frequently; verify current endpoints. Do not write code that violates platform terms of service.

Example Platform: Twitter; Features: post tweets; Language: Python.

Follow-up prompts

  • How do I handle rate limits when making many API calls?
  • Can you show me how to refresh access tokens automatically?
  • What are the best practices for storing API credentials securely?