pavelk2 / social-feed

JavaScript plugin that shows a user feed from the most popular social networks
http://pavelk2.github.io/social-feed-example/
MIT License
963 stars 304 forks source link

Facebook Graph now v3.0 - tokens no longer working #337

Open mistafi opened 6 years ago

mistafi commented 6 years ago

Facebook has updated the graph API to v3.0, and now tokens are no longer working. However, it appears that tokens created before v2.12 are still functioning.

I switched the version in socialfeed.js, but it did not work.

I also scanned Facebook's Broken Changelog and came up empty-handed.

Any help you can offer would be much appreciated.

Thanks for the great plugin!

vushe commented 6 years ago

Oh yes, I'm not alone... welcome to issue #330 .

mistafi commented 6 years ago

Possible fix, tested and currently working: go to

https://developers.facebook.com/tools/explorer/145634995501895/?method=GET&path=me%2Ffeed&version=v3.0

and grab the token it generates from here.

mutiullah7 commented 6 years ago

I generated new access token using my App id and app secret but when i put it into the social-feed.js it still dont show facebook page feed, in example (https://pavelk2.github.io/social-feed-example/) facebook is working, please help me too so i can make it work too. im also not getting any errors in concole

vushe commented 6 years ago

@mutiullah7, don't bother with that. Most probably new FB API won't work with this plugin.

As an alternative I suggest you to try free option at juicer.io. Other questions: issue #330.

mutiullah7 commented 6 years ago

Hi @vushe i created new access token using app id and app secret its working again for me

vushe commented 6 years ago

Great to know, @mutiullah7. Thanks for feedback!

davabo commented 6 years ago

thank you @mutiullah7 and @vushe your discussions has really helped me fix the plugin.

As said in other posts, update your socialfeed.js to v2.12

request_url = Feed.facebook.graph + 'v2.12/' + userdata.id + '/posts'+ fields + limit + query_extention;

request_url = Feed.facebook.graph + 'v2.12/' + page + '/feed'+ fields + limit + query_extention;

After you've changed the above, go to this link and generate your new access code -> https://developers.facebook.com/tools/explorer/145634995501895/?method=GET&path=me%2Ffeed&version=v3.0

Add that into your js file and BOOM - fixed.

Thanks again!!

kierweb commented 6 years ago

I believe the access codes which are generated by that link are time restricted.