Search code examples
iosobjective-cfacebookfacebook-graph-apifacebook-fql

How to get photos from a facebook page without login in ios


I am making photo viewer app. I want to get photos from Facebook page without user needs to Login.

I know how to get photos from Facebook but I did not know how to get photos without login? I use facebook graph api 2.5 and I am also aware of graph explorer.

I refer this link to get photos from Facebook but in this post login must be required.

So can we get Facebook page's photos without login?

Please help me on this.


Solution

  • This is the endpoint to get photos from a Page: https://developers.facebook.com/docs/graph-api/reference/page/photos/#Reading

    You can use an App Access Token if the Page is not restricted by age or location - no login required. If the Page is restricted, you need to use a User Token of a User who is allowed to see the Page and its contents - or a Page Token if you manage the Page.

    More information about Tokens: