How to Connect & Post on 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.




- Navigate to the Apps section and select your app from the left sidebar.
- Scroll down to the User authentication settings section and click on the “Set up” button.
- In the App permissions (required) section, select: Read and write
- In the Type of App (required) section, choose: Web App, Automated App or Bot
- In the Callback URI / Redirect URL (required) field, enter: https://social.gravitywrite.com/callback/twitter
- In the Website URL (required) field, enter: https://social.gravitywrite.com
- Click on “Save Changes” to apply the configuration.




- 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

- Go to your dashboard.
- Click on the “Buy Credits” button located at the top right corner.
- The Purchase credits popup will appear.
- Select a credit amount or enter a custom amount


- Verify the amount in the Amount field.
- Click on “Continue to payment”.

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: 17/04/2026
Thank you!
