How do I pull a Facebook feed from a Facebook page for a business in Drupal 7?

It seems like there were a lot more options for this in Drupal 6.

I just want to pull all of the updates from this page:

https://www.facebook.com/financingyourfuture

Is it possible? Did Facebook make some sort of API change that doesn't allow it?

Comments

andy.alexander’s picture

Facebook pull doesn't work at all, as far as I can tell. It threw up an error, and there's no UI to do anything with.

Trying to work with feeds_facebook, but it is quite complex.

vm’s picture

facebook pull works on the D7 sites I've seen it running on. What was the error?

config page is @ admin/config/services/facebook-pull per the .module file - after which you enable the block provided by the module.

andy.alexander’s picture

Getting access denied when I try to go to that path. This is with Facebook Pull enabled, on the admin user.

Also getting this:

Warning: file_get_contents(https://graph.facebook.com//feed?access_token=541065219274599|WOLOPa1I0ChdN7L64TGxI_UmTI0&limit=5): failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request in _facebook_pull_feed() (line 275 of /var/www/domain/sites/all/modules/facebook_pull/facebook_pull.module).

mcfilms’s picture

I installed Facebook Like Box on one site and liked it so much I added it to two others. It drives people to "Like" the page, shows picons of people that like the page AND provides a scrolling "feed" of the FB page. It is also probably one of the easier modules to install and configure.

A list of some of the Drupal sites I have designed and/or developed can be viewed at motioncity.com

andy.alexander’s picture

This may be precisely what I need.

Let me check it out.

andy.alexander’s picture

The only problem with this is that it is all in an iframe, and that doesn't allow much for styling.

mcfilms’s picture

I guess. But if you look closely there are a LOT of selectors provided: .mhs .pluginBoxDivider .uiHeaderTop.

I think someone could completely override the default styling with css.

A list of some of the Drupal sites I have designed and/or developed can be viewed at motioncity.com

andy.alexander’s picture

But you can't style inside an iframe...

tom.camp’s picture

Not sure if this is still an issue, but the Access denied is caused by a typo in the hook_menu function of facebook_pull.module. There is a space after administer facebook pull.

It currently is:

$items['admin/config/services/facebook-pull'] = array(
    'title' => 'Facebook pull',
    'description' => 'Set Facebook API details for facebook blocks.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('facebook_pull_settings'),
    'access arguments' => array('administer facebook pull '),
    'type' => MENU_NORMAL_ITEM,
  );

It should be:

$items['admin/config/services/facebook-pull'] = array(
    'title' => 'Facebook pull',
    'description' => 'Set Facebook API details for facebook blocks.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('facebook_pull_settings'),
    'access arguments' => array('administer facebook pull'),
    'type' => MENU_NORMAL_ITEM,
  );

I've submitted an issue here -> https://drupal.org/node/2166801. I probably should have just created a patch, but it seemed like a lot of work for a space.

ashwinsh’s picture

Hi Andy,

I also got same error while working with facebook pull module, if you resolve it the then please suggest me steps which you followed for the same.

Thank you.
Ashwin Shahakar.