Error getting facebook friend photo via PHP SDK

1

I'm using the Facebook API SDK to work with facebook. The version of the SDK I'm using is 2.8. I'm pulling the list of my friends' IDs and I'm successfully getting it.

What I need now is to get the picture of each of them, but I can not. He instead of returning the photo he returns me a photo with "?" (question). When it does not return this, it usually returns with the error message below:

  

(# 12) picture edge for this type is deprecated for versions v2.3 and   higher

I've tried everything, but nothing worked. I was trying like this:

link = > No way, return question.

link = > It did not return the

In my PHP code I used

$this->facebook->request('get', '/'.$FriendID.'/picture?type=large');

But gave the error quoted above.

I do not know what to do and need to deliver to the client, but I do not know how to solve it.

    
asked by anonymous 18.12.2016 / 03:54