Nil
Nil

Reputation: 1195

Facebook $this->facebook->api('me/albums') returning empty array

I have developed a facebook app get all profile pictures of user. The issue is that app is working for me, but same page returns empty array if i logged in with another facebook account. Following is my code

$albums = $this->facebook->api('me/albums'); // api call to facebook to fech all albums of the given page
print_r($albums['data']);
exit;

Upvotes: 0

Views: 418

Answers (1)

andyrandy
andyrandy

Reputation: 74004

I assume you did not go though Login Review, so the required user_photos permission will only work for users with a role in the App (Admin, Developer, Tester).

Upvotes: 1

Related Questions