开发者

how to get facebook user album's id using php facebbok API

开发者 https://www.devze.com 2023-03-24 22:59 出处:网络
I am trying to get facebook user albums id and I am using this code $f开发者_Go百科riendsalbum = $facebook->api(\"/userID/albums/\");

I am trying to get facebook user albums id and I am using this code

$f开发者_Go百科riendsalbum = $facebook->api("/userID/albums/");

where userID is the user facebook id but it returm me empty array.


Well i used this code in app

$albums = $facebook->api('/me/albums?fields=name,link');

Here is the sample app.


Ensure that you have the friends_photos permission set in your application and the following call should work

$friendsalbum = $facebook->api("/userID/albums/");

If it returns empty after this it means that the user's privacy setting is blocking you from accessing this data.

how to get facebook user album's id using php facebbok API

0

精彩评论

暂无评论...
验证码 换一张
取 消