Pulling Social Media into Drupal Site - dummies

Pulling Social Media into Drupal Site

By Lynn Beighley, Seamus Bellamy

After you enable the Activity Stream and related modules, you can begin pulling in social media content from other sites into your Drupal site. Activity Stream is based on an individual user. To set it up for use with a particular user, follow these steps:

  1. Click People on the Dashboard menu bar.

  2. Locate the user account for which you want to set up an Activity Stream. Click the Edit link to the right of the user’s name.

    In this example, it will be added to the admin account.

    If you are adding the Activity Stream to the user account you are currently using, you can choose My Account→Edit→Activity Stream.

  3. Click the Activity Stream link under the Edit tab.

    This opens the Activity Stream setup page.


    This form has blanks for specific websites and a large box for Rich Site Summary (RSS) feeds. With the exception of the Facebook text box, the text boxes on this page are simple to fill out. Del.icio.us, lastfm, Digg, Twitter, Flickr, and YouTube need your username on those sites.

  4. Enter your username for the particular website you want to include in your Activity Stream output and click Save.

    Your streams update automatically at intervals, but to make it update immediately so you can see the new data, you need to run your cron program to make Drupal go out and get your information from the websites.

  5. Choose Reports→Status Report.

  6. Under the listing Cron maintenance tasks, click the Run Cron Automatically link.

You can now view your Activity Stream page by choosing the View tab of the user’s profile. In this example, the admin account was used. The Activity Stream appears on the View tab.


To activate your Facebook feed is a little trickier. Facebook requires a URL that you have to dig around a bit to find. Follow these steps:

  1. Log in to your Facebook account.

  2. Navigate to Facebook Notifications.

    This opens a page with a list of your notifications.


  3. Click the Via RSS link near the top of the page.

    This opens a page with a URL similar to

  4. Copy this URL to Notepad or another word processor.

  5. In your copy of the URL, change the word notifications to status.

    This is the URL you paste into the Feed Settings on your Activity Stream setup form.

  6. Click People on the Dashboard menu bar.

  7. Click the Edit link to the right of the username.

  8. Click the Activity Stream link under the Edit tab.

  9. Paste the URL in the Feed URL text box under the Feed Settings section.

  10. Click Save.

To see the Facebook feed immediately, you have to run your cron program. Otherwise it may take an hour or more to appear on your user profile page.

The Activity Stream module only has one setting you can change, the title. By default, the title is Activity Stream. This appears above your pulled-in content. To change it, choose Administer→Site Configuration→Activity Stream. Change the text in the Title box and click Save Configuration.

As of this writing, unregistered users can see your Activity Stream. The Activity Stream module doesn’t permit you to allow only registered viewers to see it.