How to connect with a Twitter custom app
As promised, we've restored Twitter's complete functionality. Now, you can add your own Twitter app's consumer ID and secret to authenticate the application, enabling full access to all its functionalities.
In this article:
- How to create a new Twitter app
- How to set up your new Twitter app
- How to connect with a custom Twitter app
- FAQs
The following are the steps and information you need to get started. To connect a custom app to Twitter, you need to create a Twitter app, set it up, and connect it to Twitter.
How to create a new Twitter app
- Go to https://developer.twitter.com
- Sign in with your Twitter account.
- Click "Developer Portal".
- You can subscribe to the paid plan from the petitions page or sign up for a free account. For now, we will sign up for free.
- Fill out the developer agreement form.
You would need to describe all the use cases required by the Application. For ContentStudio, we would be using the API for the following cases:
- Scheduling and publishing Tweets
- @mentioning Twitter accounts
- Analytics
- Social Inbox
Here is a sample text to give an idea of what the description would look like.
With Twitter API access, I want to schedule and publish tweets, track mentions, reply to comments on my tweets, and respond to customer inquiries and complaints in real time. I want to utilize the data returned from the API to help me display and gauge my tweets' performance, impressions, engagements, and other metrics.
- Click on Submit! In most cases, you will get access to the developer portal right away.
How to set up your new Twitter app?
- You will be navigated to the dashboard when the creation steps are completed, and your Twitter Developer Account is approved. Now, let’s set it up.
- From the left side menu, click on “Projects & Apps” and click on the “Default project-123xyz..” label.
- From the Settings tab, click on Edit.
- Add your project name, use case, and description. These don’t need to be specific to Content Studio; you can add your details. When done, click on Save.
- From the left-side menu, select the application name displayed under the project name we just edited.
- Edit the “App details” and provide the name, app icon, and short description of your application.
- Edit the “User authentication settings”
- App permissions: Select “Read and write” permission
b. Type of App: Select “Web App, Automated App, or Bot”
c. App info: Please make sure to add Content Studio's callback URL here. This is really important, as it is required to authenticate the application when connecting with Twitter.
Also, you would need to provide the URL to your website here. The other options are all optional.
- Click on Save.
- Upon completing this step, you will be shown your application's OAuth 2.0 Client ID and Client Secret. Copy and save them in a safe location. In the future, they will not be shown in full and must be regenerated if there is any mistake.
These client details are for v2-level authentication, ContentStudio uses the v1.1 method and you would need the “Consumer Key” and “Consumer Secret” to authenticate the application.
How to connect with a custom Twitter app?
- Log in to ContentStudio
- Click on the Your Profile in the top right corner and select Social Accounts.
- Navigate to the Twitter section, click the “Connect Twitter Profile” drop-down, and Click “Add a New Custom App”.
- Add the Twitter App’s name, API Key, and Secret.
Important:
X (Twitter) has updated its policy, reducing the daily posting limit to 17 daily posts for Free Custom Apps.
- In another tab, open the Developer Portal; under “Projects & Apps,” select your project and then the App.
- Click on the “Keys and Tokens” tab, and from the “Consumer Keys” section, click on “Regenerate”. Copy and paste these generated keys to the form in ContentStudio.
- Add our Callback URL to Twitter:
- Copy the callback URL for Content Studio https://api-prod.contentstudio.io/twitter/connect
- On the “Settings” page, find the “User authentication settings” section and click Edit.
c. On this same page, find the “App info” section, paste the URL in the “Callback URI / Redirect URL” text field, and click on Save
Return to Content Studio, click the checkbox confirming that you’ve added the callback URL, and click on Proceed to start the authentication process.
That's all you are now ready to post on Twitter. 💥
FAQs
Q1: What permissions are required for my Twitter app to work with ContentStudio?
A: Set your Twitter app’s permissions to “Read and Write” and ensure that User Authentication Settings are configured with ContentStudio's callback URL. This allows ContentStudio to manage posts and interactions.
Q2: What is the callback URL, and why is it important?
A: The callback URL (https://api-prod.contentstudio.io/twitter/connect) is essential for authenticating your app with ContentStudio. This URL allows secure connectivity between your Twitter app and ContentStudio.
Q3: Can I post directly after connecting my custom Twitter app?
A: Yes, once you’ve completed the setup and authenticated the app in ContentStudio, you can post directly to your Twitter profile.
Q4: Is there a daily posting limit with custom Twitter apps?
A: Twitter’s policy limits free custom apps to 17 daily posts. For higher limits, consider upgrading to a paid Twitter API plan.