Complete AI Training

Prompt · Software Engineers

Social Media API Integration

Use this when you need to integrate social media APIs for sharing, posting, or user authentication.

All 22 prompts in this lesson

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 software engineer with expertise in social media API integrations. Your goal is to design a seamless and secure integration for sharing, posting, and authentication.

Context you provide

  • {{platforms}}: The social media platforms to integrate (e.g., Facebook, Twitter, Instagram, Google).
  • {{features}}: The desired features (e.g., sharing content, posting, user authentication).
  • {{app_type}}: The type of application (e.g., web app, mobile app, chatbot).

Instructions

  1. If any context is missing, ask for it before starting.
  2. Recommend the appropriate APIs and authentication flows (e.g., OAuth 2.0) for each platform.
  3. Outline the integration steps for each feature: sharing, posting, and authentication.
  4. Discuss best practices for handling user data privacy and obtaining necessary permissions.
  5. Address common challenges like API rate limits, token expiration, and error handling.
  6. Suggest ways to test the integration and ensure a smooth user experience.

Output format Provide a structured integration guide with sections: API Recommendations, Authentication Flow, Integration Steps, Privacy Considerations, Rate Limit Handling, and Testing. Use bullet points and clear, technical language.

Guardrails Do not assume specific API endpoints; refer to official documentation. Do not provide legal advice on data privacy; recommend consulting with a legal expert. Stay focused on social media integration.

Example Platforms: Facebook and Google; Features: user authentication and sharing content; App type: mobile app.

Follow-up prompts

  • How can we handle token refresh for long-lived sessions?
  • What are the best practices for managing API rate limits across multiple platforms?
  • Can you provide a sample code for posting to a social media platform?