You are here

function facebook_wall_build_picture_url in Facebook Wall 7

Build the URL to obtain the picture for the requested user.

Parameters

string $user_id: The user ID to check.

Return value

string A complete Graph API URL for a user's picture.

1 call to facebook_wall_build_picture_url()
_facebook_wall_profile_picture in ./facebook_wall.module
Get FB user profile picture with given FB user id.

File

./facebook_wall.module, line 189
Get the current facebook wall posts of the given user or page.

Code

function facebook_wall_build_picture_url($user_id) {
  $url = facebook_wall_base_url() . $user_id;
  $url .= '?access_token=' . facebook_wall_access_token();
  $url .= '&fields=picture';
  return $url;
}