FireDAC Components for Twitter

Build 22.0.8462

Creating a Custom OAuth App

Create an App

You can follow the steps below to create a Twitter app and obtain the OAuth client credentials:

  1. Log in to https://developer.twitter.com/en/portal/projects-and-apps. If you haven't already, sign up for a developer account.
  2. To access the Twitter API v1.1, you need to Apply for additional access within the developer portal. You can read more about this in the Twitter API documentation.
  3. Once you're on the Developer Portal, create a new Project. When you're done, you are redirected to create a new App. You can also go to the Project you just created and click Add App.
  4. Set a name for the App and Twitter displays your keys and tokens. You should save these values somewhere since you need them later for authentication.
  5. Go to the App settings. Under User authentication settings click Set up. Turn on the 'OAuth 1.0a' authentication.
  6. Select Read and write and Direct message from the available App permissions.
  7. Enter the website and other optional information to be displayed to users when they connect.
  8. Set the Callback URL to http://localhost:33333/.

If you intend to communicate with Twitter only as the currently authenticated user, then you can obtain the OAuthAccessToken and OAuthAccessTokenSecret directly from the Developer Portal on Twitter. Navigate to your App and go to Keys and tokens. There, click Generate on the Access Token and Secret option. You can then connect by setting the OAuthAccessToken and OAuthAccessTokenSecret connection properties.

Otherwise, if you need to generate access tokens for other user accounts besides the one you used to create the app on Twitter, use the consumer key and consumer secret.

Create a Twitter App

You can follow the steps below to obtain the OAuth client credentials:

  1. Log in to https://developer.twitter.com/en/portal/projects-and-apps. If you haven't already, sign up for a developer account.
  2. To access the Twitter API v1.1, you need to Apply for additional access within the developer portal. You can read more about this in the Twitter API documentation.
  3. Once you're on the Developer Portal, create a new Project. When you're done, you are redirected to create a new App. You can also go to the Project you just created and click Add App.
  4. Set a name for the App and Twitter displays your keys and tokens. You should save these values somewhere since you need them later for authentication.
  5. Go to the App settings. Under User authentication settings click Set up. Turn on the 'OAuth 1.0a' authentication.
  6. Select Read and write and Direct message from the available App permissions.
  7. Enter the website and other optional information to be displayed to users when they connect.
  8. Define the Callback URL setting.

    If you are making a Web app, set the Callback URL to the URL you would like users to be returned to after they have granted your application privileges. If you are making a desktop application, set the Callback URL to http://localhost:33333/.

If you intend to communicate with Twitter only as the currently authenticated user, then you can obtain the OAuthAccessToken and OAuthAccessTokenSecret directly from the Developer Portal on Twitter. Navigate to your App and go to Keys and tokens. There, click Generate on the Access Token and Secret option. You can then connect by setting the OAuthAccessToken and OAuthAccessTokenSecret connection properties.

Otherwise, if you need to generate access tokens for other user accounts besides the one you used to create the app on Twitter, use the consumer key and consumer secret.

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8462