How to Create an Activity Feed in Drupal 7 Tutorial #4: Limiting Messages to Your Friends

In this Drupal Video Tutorial, I show you how to create an activity feed with the Heartbeat module that limits results to messages created by your friends. In order to do so, we rely on the Flag, Flag Friend and Views module. At the time of recording this though, you'll need to apply a patch to the Flag Friend module to make it work but I walk you through that in the video.

While this video walks you through the process to limit Heartbeat messages, the process is the same for creating other views that limit results to friends. Essentially we need to create a couple relationships and a contextual argument to pass in our user's ID.