Twitter (X) API Integration
X (Twitter) Integration Guide
To schedule posts on X (Twitter), you will need to create and configure an app for this platform. This guide will walk you through the setup process.
To begin, you must have a Twitter Developer Account. If you don’t have one, go to the Twitter Developer Portal and click “Sign up for Free Account.”
Under "Developer agreement & policy" fill out / copy & paste following details to describe your Use cases (without [[ ]] ):
[[ We plan to use the Twitter API for the following purposes:
- Schedule tweets
- Engagement with users (Reply, Like, Retweet + Quote)
- Extract profile metrics from connected accounts
- Extract posts with their metrics from connected accounts
We will display graphics like:
- Number of followers for each day of the last 3 months
- The number of likes, retweets, comments, profile clicks, and link clicks for each day of the last 3 months
- ..etc.
The accounts that we are going to connect to the application (oAuth) with the Twitter API belong to us and are managed by us.
We got acquainted with "Automation rules" and "Twitter Rules". ]]


Select "Create Project". Give the Project name, select the use case from droplist "Building Consumer tools (professional)", and enter the project description as shown in below screenshots.





- Select your app “name” from the left sidebar, scroll down to the User authentication settings section, and then click on Set up button.
- In the App permissions section select "Read and write".
- In the Type of App section, choose "Web App, Automated App or Bot".
- Enter the Callback URL/Redirect URL in the provided field: https://social.gravitywrite.com/callback/twitter
- In the Website URL field, enter your website URL: https://social.gravitywrite.com
- Then, click on the Save button.



- Go back to the Twitter App that you just created from the left side panel.
- Access the Keys and Tokens section and Regenerate new keys

Copy the above credentials - API Key and API Secret key.
Go to GravityWrite's "GravitySocial" dashboard > Social Accounts > Configure Services and paste them into the X third-party service form and Save it.

- On the Gravity Social Dashboard, click on the ‘Add Account’ button and then Click on “Add Account” in the Social Accounts page.
- A list of social media platforms will appear. Click on X.
- Give authorization to connect GravityWrite to X
- Your X account is now connected. You can start creating posts from GravitySocial and start publishing





Updated on: 14/11/2025
Thank you!
