Twitter Integration Test

Test your Twitter API configuration and verify the integration is working

API Configuration Test

Test your Twitter API key configuration

Connection Test

Test posting functionality with your connected account

67/280 characters

Twitter API Setup Instructions

Complete guide to setting up Twitter integration

1. Twitter Developer Account

  1. You already have a Twitter Developer account ✅
  2. Your app "Ai Social media management" is configured ✅
  3. Free Tier access with 500 posts/month limit ✅
  4. Read and Write permissions enabled ✅

2. Create Twitter App

  1. Your app is already created and configured ✅
  2. Current app settings:
    • App Name: Ai Social media management ✅
    • Website: https://mntomfordigitalllc.com ✅
    • Callback URLs: localhost:3000 & mntomfordigitalllc.com ✅
    • App Type: Web App/Bot (Confidential Client) ✅
    • Permissions: Read and Write ✅
  3. OAuth 1.0a Authentication enabled ✅
  4. Free Tier: 500 posts/month, 100 reads/month ✅

3. Environment Variables

# Add to your .env.local file
TWITTER_API_KEY=your_twitter_api_key_here
TWITTER_API_SECRET=your_twitter_api_secret_here
TWITTER_BEARER_TOKEN=your_twitter_bearer_token_here (optional for OAuth 1.0a)

# Site URL for OAuth callbacks
NEXT_PUBLIC_SITE_URL=https://mntomfordigitalllc.com

4. Common Issues & Solutions

Free
Free Tier Limits
500 posts per month, 100 API reads per month
Monitor your usage to avoid hitting limits
403
Forbidden Error
Your app needs "Read and Write" permissions or Elevated access
Solution: Update app permissions in Twitter Developer Portal
401
Unauthorized Error
Invalid API keys, incorrect configuration, or app suspended
Solution: Verify API keys in Developer Portal, check app status
429
Rate Limit Exceeded
Too many API requests in a short time
Solution: Wait 15 minutes and try again, or apply for higher rate limits
187
Duplicate Tweet
Tweet content has already been posted recently
Solution: Modify tweet content slightly or wait before posting

5. Testing Checklist

Twitter Developer account approved ✅
App "Ai Social media management" created ✅
Read and Write permissions enabled ✅
OAuth 1.0a authentication configured ✅
Callback URLs properly set ✅
API keys added to environment variables
Development server restarted
API configuration test passes
Connection test with account succeeds
Ready for live posting (500/month limit)

Quick Links & Resources

Helpful links for Twitter integration setup

Integration Status

Current status of your Twitter integration

API Configuration
Not Tested
Account Connection
Not Tested
Ready to Publish
Not Ready