Twitter

OAuth

The provider includes embedded OAuth credentials in order to connect to Twitter. You can connect without setting any connection properties for your user credentials. When you connect the provider opens the OAuth endpoint in your default browser. Log in and grant permissions to the application. The provider then completes the OAuth process.

All tables require authentication. You must use OAuth to authenticate with Twitter. OAuth requires the authenticating user to interact with Twitter using the browser.

Create an OAuth App

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

  1. 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.

  2. 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.

  3. 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.

  4. Go to the App settings. Under User authentication settings click Set up. Turn on the 'OAuth 1.0a' authentication.

  5. Select Read and write and Direct message from the available App permissions.

  6. Enter the website and other optional information to be displayed to users when they connect.

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

  2. 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.

  3. 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.

  4. Go to the App settings. Under User authentication settings click Set up. Turn on the 'OAuth 1.0a' authentication.

  5. Select Read and write and Direct message from the available App permissions.

  6. Enter the website and other optional information to be displayed to users when they connect.

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

Last updated