function facebook_wall_build_feed_url in Facebook Wall 7
Generate a Graph API URL string for a page's feed.
Return value
string A complete Graph API URL for a page's feed.
2 calls to facebook_wall_build_feed_url()
- facebook_wall_block_view in ./
facebook_wall.module - Implements hook_block_view().
- facebook_wall_display_posts in ./
facebook_wall.pages.inc - Facebook wall post content fetcher.
File
- ./
facebook_wall.module, line 158 - Get the current facebook wall posts of the given user or page.
Code
function facebook_wall_build_feed_url() {
$url = facebook_wall_base_url() . variable_get('facebook_wall_page_url', 'me') . '/feed';
$url .= '?access_token=' . facebook_wall_access_token();
$url .= '&fields=';
$url .= 'actions,';
$url .= 'caption,';
$url .= 'comments{from,message,created_time,fan_count},';
$url .= 'created_time,';
$url .= 'description,';
$url .= 'id,';
$url .= 'likes{id,name},';
$url .= 'link,';
$url .= 'message,';
$url .= 'name,';
$url .= 'picture,';
$url .= 'source,';
$url .= 'story,';
$url .= 'type';
$url .= '&limit=' . (int) variable_get('facebook_wall_post_limit', 10);
return $url;
}