Facebook Graph API to get user photos

时间:2015-08-07 02:23:21

标签: facebook facebook-graph-api

I would like to ask about how to get users' photos from a photo album using Facebook graph API. I am trying some other coding by which I can get users' profile name and his/her profile picture, but I want to get photos. Any kind of help will be appreciated. Thank you

This is the what I am using for getting user profile picture and user name:

if ($user)
    {
      try
      {
        $f=$facebook->api('/me');
         $access_token = $facebook->getAccessToken();
      } catch (FacebookApiException $e)
       {
         echo $e;
         $user = null;
       }
    }
echo $f['name']."<br/><img src='https://graph.facebook.com/".$f['id']."/picture' width='50' height='50' />";

1 个答案:

答案 0 :(得分:0)

Have you tried /{user-id}/albuns?