Many of the image URLs provided by the queries above will only provide resolutions up to 720px. To do that, you need to run a slightly different query: Getting photos posted to the feed, not just photo albums You should see a JSON of all your photos, and each photo's corresponding URL on Facebook's CDN. You can copy that URL and plug it into your browser. The "cURL" tab will show the URL which will look something like this: (photos.fields(source))&access_token=YOUR_ACCESS_TOKEN_HERE You will see a JSON returned with the URL of some/all of the photos in your selected Facebook Page.Ĭlick "Get Code" and it will show you the Javascript or raw URL used to access this information. If the above doesn't work, you can try copying the following URL into the API explorer: YOUR_PAGE_ID/?fields=albums.fields(photos.fields(source)) Now click "Submit" on the right hand side. The "Photos" child-level, select "source" Click on the + sign to see what options you have.Ĭlick on the + sign and scroll down to "connections" and select "Albums" Next, on the left window, you can see "Node: " and a + sign. This ID is needed for making any queries related to this page. You should see a list of pages that you enabled access for, inside the viewing window.įind the Facebook Page you want to query, and click on the "id" field. You may get a popup window where you have to confirm which page(s) you would like this access token to be able to see. According to this doc you need the pages_show_list and pages_read_engagement permissions for this query.Ĭlick on "Get Access Token" which will give you a new token with the updated permissions. Choose the relevant permissions in the right sidebar. You need to enable certain permissions to make this Graph query. Try typing in /me/accounts to see if you can see anything. In the API Navigator, you can access /me to bring up the basic information of yourself. I've successfully pulled all photos from a Facebook page.Įnsure that you are an Admin of the Facebook Page. Try this and let me know how it goes for you.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |