Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Receiving the following message when printing in template:
Warning: http_build_query(): Parameter 1 expected to be Array or Object. Incorrect value given in _facebook_pull_feed_cached() (line 253 of D:\www\home\localhost\public_html\sites\all\modules\facebook_pull\facebook_pull.module).
Any ideas where I'm going wrong here?
Comments
Comment #1
Syd Barrett CreditAttribution: Syd Barrett commentedfacebook_pull_render($graph_id, $type, $app_id, $app_secret, $options = array('limit' => $limit));
so you can write facebook_pull_render($graph_id, $type, $app_id, $app_secret, $options = array('limit' => 12));
Comment #2
Matt BThanks - this should be described better on the module project page http://drupal.org/project/facebook_pull
Comment #3
daveferrara1 CreditAttribution: daveferrara1 commentedThis is actually set in the admin. The limit is then passed in $options.
$limit = variable_get('facebook_pull_limit', '');