Prompt · Software Engineers
Social Media API Integration
Use this when you need to integrate social media APIs for sharing, posting, or user authentication.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
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
- If any context is missing, ask for it before starting.
- Recommend the appropriate APIs and authentication flows (e.g., OAuth 2.0) for each platform.
- Outline the integration steps for each feature: sharing, posting, and authentication.
- Discuss best practices for handling user data privacy and obtaining necessary permissions.
- Address common challenges like API rate limits, token expiration, and error handling.
- 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?