grav-plugin-facebook
grav-plugin-facebook copied to clipboard
Error while trying to download (code: 400): https://graph.facebook.com//albums?access_token=yyyyyyyyy|xxxxxxxxxxxxxx
Version your plugin: 1.7.0 For each request type, as {{ facebook_posts() }}, {{ facebook_album() }}, {{facebook_events() }}, return always the error message on subject. I have insert the FB app_id and FB secret key; what other settings are required ? Thank's Claudio
I am having the same issue with the Events feed.
UPDATE: the below response is outdated and my fork of this plugin does also not work anymore.
Probably there is no solution. See this Stackoverflow thread or another issue for more info.
I had the same issue. Facebook made some changes to their API recently, you can't get the event feed from a page with an app id and secret anymore (see here ).
What worked for me is using a page token. Follow these instructions on how to get one (you do need to be some kind of admin of the page though).
As a current workaround, in my fork I've edited the plugin to accept the page token. Just add the token from above to your facebook.yaml
like so:
facebook_common_settings:
application_id: 'your app id'
page_token: 'your token'
Hello thOrgall,
Thanks for the idea. Tried to include your fork and finally found the page-access-token
I guess that the code I have to enter, right? Or do I have to do any further step?
Because still the events are not showing up on my website.
Any idea?
Hey @prinla, unfortunately I found a few hours after posting that comment that it did not work anymore, because I used a short-lived user token.
I tried again two days ago with various tokens (long- and short-lived ones), and they all did not work.
I suggest to follow this Stackoverflow thread. There does not seem to be any good solution now, but if there is, it will end up there. Facebook really screwed us over here :(