How to load all photos of current user in PHP Graph PHP SDK?

I am trying to find all the photos where the current user is tagged using the PHP PHP SDK. When I request $fb->get('/me/photos?type=tagged&limit=10000'), only about 500 photos are listed when I logged in as I do. If I register the webpage on Facebook, it means that I have more than 3000 photos. Can I get all the photos of the current user?

+4
source share
2 answers

We hope this resume will save some people since I spent several days scratching my head over it. Starting with Graph API v2.5, your application will not have permission to view photos that other people have downloaded if the bootloader has not entered the application and received permission user_photos. This even applies to photos that the current user has been tagged in.

In order for the application to receive all the photos that you tagged through the Graph API, all your friends who have uploaded photos that you tagged should have granted permission to the application.

To quote Facebook support:

. Facebook , . user_photos (, , user_posts, ) , .

: API Facebook

+1
0

Source: https://habr.com/ru/post/1612883/


All Articles