Twitter Settings
Twitter Settings were previously used to integrate ERPNext with Twitter (now X), allowing users to publish tweets directly from the system using OAuth authentication.
This integration has been removed from ERPNext starting with Version 15 due to changes in the Twitter (X) API. The information below is provided for historical reference and applies only to ERPNext Version 14 and earlier.
How to Access Twitter Settings
Go to:
Home > CRM > Settings > Twitter Settings
Historical Configuration (ERPNext Version 14 and Earlier)
Before configuring Twitter Settings, a Twitter Developer Application had to be created for your organization. ERPNext communicated with Twitter through this application using the OAuth 2.0 authentication protocol.
The Developer App acted as the bridge between ERPNext and Twitter, enabling authorized tweet publishing.
1. Create a Twitter Developer App
Create a Twitter Developer App and ensure it has Read and Write access permissions.
2. Configure the Callback URL
The callback URL was required to complete the OAuth authentication process.
- Open your Twitter Developer App.
- Go to App Details.
- Select Edit Details.
- Add the following Callback URL:
https://{yoursite}/api/method/erpnext.crm.doctype.twitter_settings.twitter_settings.callback
- Save the changes.
The callback URL redirected users back to ERPNext after successful Twitter authorization.
3. Configure Twitter Settings
After creating the Developer App, enter its API credentials in the Twitter Settings document.
3.1 API Key
Enter the API Key generated from your Twitter Developer account.
3.2 API Key Secret
Enter the corresponding API Key Secret.
These credentials were available from:
Twitter Developer Portal → My Apps → Your App → Keys and Tokens
4. Authorize the Application
After saving the API Key and API Key Secret, ERPNext redirected users to Twitter’s authorization page.
Users authenticated using their Twitter account and clicked Authorize App to grant ERPNext permission to publish tweets on their behalf.
Once authorization was completed, ERPNext could publish tweets through the connected Twitter account.
