Community Documentation

Post and import tweets (6.x)

Last updated March 27, 2013. Created by drupalfan79 on July 22, 2011.
Edited by Dave Hirschman, weanders, steinmb. Log in to edit this page.

Requirements

  • drupal 6.x
  • view 6.x-2.x
  • oauth 6.x-3.x
  • twitter 6.x-3.x

Steps

  1. Activate modules:
    • OAuth
    • Twitter
    • Twitter Post
    • Views
  2. Site configuration
    1. Register your application at Twitter dev. Set the Callback URL: to what is shown in admin/settings/twitter -> Callback URL (normally http://yourdomain.com/twitter/oauth).
    2. Make sure the Access level is set to Read and Write, otherwise you will not be able to update your Twitter stream from Drupal.
    3. Twitter will generate two keys to be added in the Drupal site, a Consumer and a Consumer secret. Add the keys to admin/settings/twitter ->OAuth Settings
    4. Select the content type(s) for Drupal to post to Twitter. Go to admin/settings/twitter: open the tab ‘post’.
    5. Choose an user account and click add a twitter account. Make sure that ‘import’ is checked.

    You should now be able to update your twitter stream by creating new article. Make sure to that "Announce this post on Twitter" is checked before saving.

Note:

If you have added an twitter account to Drupal and then added OAuth support you will need to remove and add your Twitter account again in Drupal. This is also the case if you changed Twitter Application access level since you need to confirm and re-authorize the new privacy settings.

Twitter import

Run cron and verify the user Twitter stream is getting imported into Drupal.

  1. Go to admin/reports/status and manually run cron.
  2. Go the selected user account and choose the tweets tab to verify the tweets were imported.

Page status

No known problems

Log in to edit this page

About this page

Drupal version
Drupal 6.x
Level
Beginner, Intermediate
Audience
Site administrators

Site Building Guide

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.