Online Test Banks
Score higher
See Online Test Banks
eLearning
Learning anything is easy
Browse Online Courses
Mobile Apps
Learning on the go
Explore Mobile Apps
Dummies Store
Shop for books and more
Start Shopping

Pulling Social Media into Drupal Site

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.

    image0.jpg

    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.

image1.jpg

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.

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

    This opens a page with a URL similar to

    http://www.facebook.com/feeds/notifications.php?id=575826921&viewer=
    575826921&key=AQAZLhFMIqnd8WLZ&format=rss20
  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.

blog comments powered by Disqus
Advertisement

Inside Dummies.com

Dummies.com Sweepstakes

Win $500. Easy.