Twitter/X Integration
Post automated updates and threads to Twitter/X from your GitHub activity.
Prerequisites
- Twitter/X account
- Twitter Developer account (free)
- Elevated API access (required for OAuth 2.0)
Setup Steps
Step 1: Create Twitter Developer App
- Go to developer.twitter.com
- Sign in with your Twitter account
- Apply for developer access (if first time)
- Create a new project: "Full Self Publishing Integration"
- Create a new app within the project
Step 2: Generate API Credentials
- In your app settings, go to "Keys and tokens"
- Generate:
- API Key (Consumer Key)
- API Secret (Consumer Secret)
- Access Token
- Access Token Secret
- Copy all credentials immediately (you won't see secrets again)
Step 3: Configure API Permissions
- Go to "User authentication settings"
- Enable OAuth 2.0
- Set permissions: Read and Write
- Add callback URL:
https://fullselfpublishing.com/api/oauth/twitter/callback
- Save settings
Step 4: Connect to Full Self Publishing
- Navigate to Settings > Platforms > Twitter
- Click "Connect Twitter Account"
- OAuth flow:
- You'll be redirected to Twitter
- Click "Authorize app"
- Redirected back to Full Self Publishing
- Status should show "Connected"
Alternative: Manual API Key Entry
- Select "API Keys" method
- Enter all four credentials from Step 2
- Click "Connect"
Tweet Configuration
Content Settings
- Max Length: 280 characters (auto-truncated)
- Thread Creation: Posts longer than 280 chars become threads
- Link Inclusion: Add GitHub links to tweets
- Hashtags: Auto-generate or use custom hashtags
Tweet Templates
Example short tweet template:
🚀 Just released {{version}} of {{project_name}}!
{{summary}}
{{github_url}}
#OpenSource #DevUpdate
Example thread template (auto-split):
Thread: Recent updates to {{project_name}}
1/n: {{introduction}}
2/n: {{feature_1}}
3/n: {{feature_2}}
...
n/n: Check out the full details: {{github_url}}
Features
Character Limit Handling
Full Self Publishing automatically:
- Truncates at 280 chars for single tweets
- Creates threads for longer content
- Preserves code blocks with proper formatting
- Ensures links fit within limits
Hashtag Strategy
Configure hashtag behavior:
- Auto-generate: AI suggests relevant hashtags
- Fixed hashtags: Add specific tags to all tweets
- Topic-based: Tags based on content type (release, bugfix, feature)
- Limit: Recommended 2-3 hashtags per tweet
Media Attachments
Tweet with images:
- Enable "Include Images" in Twitter settings
- AI generates relevant preview images
- Images uploaded via Twitter API
- Alt text auto-generated for accessibility
Supported formats:
- PNG, JPEG, GIF (up to 5MB)
- Max 4 images per tweet
Publishing Workflow
Draft Review
- Generated tweets appear in Content tab
- Preview shows character count and thread structure
- Edit content directly or regenerate
- Click "Approve" when ready
Auto-Publishing
Enable for hands-free posting:
- Toggle "Auto-publish" in Twitter settings
- Set time delay (recommended: 15 min review window)
- Tweets publish automatically after generation
- You can still cancel during delay
Best Practices
- Frequency: Max 3-5 tweets per day recommended
- Timing: Schedule for peak audience hours
- Engagement: Use questions and calls-to-action
- Hashtags: Research trending tags in your niche
- Threads: Break complex updates into digestible chunks
Rate Limits
Twitter API v2 limits:
- Free tier: 50 posts/day
- Basic tier: 100 posts/day
- Recommended: 1 post every 4 hours max
Troubleshooting
"Duplicate content" error:
- Twitter rejects identical tweets within short time
- Wait 24 hours or modify content
"Unauthorized" error:
- Re-authenticate your Twitter account
- Check API credentials are current
Tweets not appearing:
- Check account isn't shadowbanned
- Verify you authorized the correct account
Related Guides: