HNM feed
HNM feed is a module for displaying Facebook feeds on your site.
Table of contents
Drupal modules discussed in this chapter: Facebook pull.
Introduction
This is a Facebook app to pull a Facebook feed into Drupal. It is named “HNM feed” because Facebook don't want to see their brand as part of a third party app or plugin module.
- agriweldltd (open page)
- dpanswers (open page)
- gisle.hannemyr
- lars.vik.9
Open pages work OK, but users can't be queried by their username. To get access to user posts, you need the app to log in first.
{ "message": "The relatively unknown Chinese company Aokatec has just introduced a\ wireless flash control radio relay named AK-TTL that looks like a low-cost\ alternative to the RadioPopper PX\ system.\n\nhttp://dpanswers.com/roztr/content_show.php?id=677", "created_time": "2012-09-10T13:12:06+0000", "id": "180088958732605_280199285429564" },
(#803) Cannot query users by their username (gisle.hannemyr)
Existing Drupal projects:
- Drupal for Facebook (general FB API Framework, seeking new maintainer)
- Facebook Page Plugin (iFrame, but only open pages)
- Facebook Pull (parser for feeds)
- Feed facebook
- Social Feed
Forum posts:
Facebook SDK tutorials:
Other tutorials:
- Peter J. White: Configuring Facebook Pull (2014)
- TheGeekStuff: How to Develop Facebook App with an Example using PHP SDK (2014)
- Drupal for Facebook-archive (2014).
Basic app credentials and graph id
You must obtain an “App ID” and “App Secret” from Facebook before you can use this module. Vist facebook for developers and select "Add a new app" from the top right pull-down menu.
From the settings tab, click on “Add Platform”, from here select “Website” as we are going to develop a facebook web app.
Under Basic settings, add the URL of your website.
The Facebook “Graph ID” for the feed to display is simply the local
path without the slashes (so if the URL to the page is
“https://www.facebook.com/user.name.7/
”, the “Graph ID” is
“user.name.7
”).
Installing and enabling the module
Install and enable as you would normally install a contributed Drupal module. See: Installing contributed modules for further information.
Creating a feed
To create a feed, navigate to: