aiaio / galleria-facebook

Display Facebook Photos on Your Website with Galleria
53 stars 25 forks source link

Not work anymore #22

Open RobertBozic opened 5 years ago

RobertBozic commented 5 years ago

Unable to retrieve Facebook photos from album xxxxxxxxx see on your demo too http://www.gagacenter.com/nyc/gaga-photos/Adult%20Gaga/3/

jmasukawa commented 5 years ago

A site I manage also is experiencing this issue, though it looks like a change in Facebook's infrastructure.

If you drop a breakpoint here, where the exception was raised: https://github.com/aiaio/galleria-facebook/blob/master/facebook/galleria.facebook.js#L100

You can see the JSON response has an error: "{ "error": { "message": "(#10) To use 'Page Public Content Access', your use of this endpoint must be reviewed and approved by Facebook. To submit this 'Page Public Content Access' feature for review please read our documentation on reviewable features: https://developers.facebook.com/docs/apps/review.", "type": "OAuthException", "code": 10, "fbtrace_id": "xxxxxxxxxxx" <-- blanked this out in case it's unique/traceable to my account } }"

The top answer to this SO post seems to have some very relevant information, though I have personally not found a solution yet: https://stackoverflow.com/questions/50455988/facebook-pages-api-page-public-content-access-review-screencast

This plugin uses API v2.3, and the current supported version of FB graph API is v3.2, so I am not surprised this stopped working.

Letme commented 4 years ago

I don't know if you get notification, but I have opened a pull request with solution in #23 .I know it is more than 1 year for you guys (and maybe too late), but some older API versions were deprecated not so long ago.