Articles on: GW Social Media integration

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.


Creating Developer account on X


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". ]]




If you get the error "Something went wrong" - just refresh the page


Fill out Application details


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.





Now, you should be able to create App name & get Keys & Tokens: steps as shown in below screenshots. 





Save this API Key & API Secret key for future use.


User Authentication Set-Up


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





If you missed saving API Key and API Secret key, you can regenerate the keys as below (skip this step if you have saved the credentials):


  • 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


Use the credentials in GravitySocial


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.



Connect & Authorize GravitySocial to start publishing posts on X


  • 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

Was this article helpful?

Share your feedback

Cancel

Thank you!