O'Reilly logo

Facebook Application Development with Graph API Cookbook by Apeksha Singh, Shashwat Srivastava

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up the Activity Feed plugin

Facebook also supports an Activity Feed plugin on which we can get the latest activities that happen on our page. These can be the shared content of our site by the users on Facebook, the comments made, likes, and so on. This plugin can be easily integrated using an iframe source code.

How to do it...

The following steps will demonstrate how to set up the Activity Feed plugin:

  1. Open the page of your website, where you want this Activity Feed plugin to be, and copy the following code. Here, we set up the Activity Feed plugin:
    <iframe src="http://www.facebook.com/plugins/activity.php?site=http%3A%2F%2Fpacktpub.com&amp;width=300&amp;height=300&amp;header=true&amp;colorscheme=light&amp;font&amp;border_color&amp;recommendations=false" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required