-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access tokens for Facebook #330
Comments
And default token doesn't work anymore, of course. I suggest either not to confuse people with Facebook support or provide a clear instruction on how to get a token. |
Hi, as usual to get "APP_ID" and "APP_SECRET" you need to create an APP like explained here: http://www.bloggingshiksha.com/how-to-get-app_id-and-app_secret-key-for-facebook-applications/ Keep in mind that Facebook has changed API version so you need to edit the socialfeed.js script and change the script as explained here (frm v2.4 to v2.12) #326 |
Thanks for reply and instruction! I followed it, but, unfortunately, no luck. Below is the message returned when using API v2.12. I asked Facebook for necessary permissions, but request rejected. Message: {
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: "H+MhBEqBn09"
}
} |
Do you still have this problem after the update to Facebook V2.12? |
Well, as I mentioned before, I have trouble with v. 2.12 as well. I can only imagine that Facebook's policy for new tokens (or new developers) is changed.
|
You are definitely not alone. Since the update to v3.0, I have tested a handful of newly generated tokens and none of them work. |
Looks like new keys require an "App Review" - see "Page Public Content Access" at the bottom of this page .... https://developers.facebook.com/docs/apps/review/feature#reference-PAGES_ACCESS |
Yeah, after one-day review my app was rejected completely. For some rights they even ask you to upload videos. So I cannot fetch data even for the group I'm administrating. Can it be related to GDPR? |
Maybe GDPR, probably Cambridge Analytica scandal. We're also running into this problem. |
After you submit for review, you are asked to select permissions. "Page Public Content Access" seems appropriate. Then you are prompted with this: Details for Page Public Content Access Your app doesn't have any platforms listed. You'll need to add at least one platform in Settings before you can continue. What platforms does your app use Page Public Content Access on? Upload screencast You must show: Drag your screencast file here to upload Choose a file to upload... Need help with screencasts? See examples and instructions here Before you can submit for review, complete the following: |
But yet...there is also this: Which permissions require review? So why aren't the tokens working? (thinking out loud and hoping for an answer) Edited: It appears we need both the "user_posts" and "Page Public Content Access" permissions to be granted. I'm currently working on submitting one of these reviews and will report back. |
Noticed this bit .. "While testing and before submitting for review, your app may only access content that is available on a Page that you own. If you want to access public content on other Pages, you must submit this feature for review." So how do you get the app to own a page!? |
Possible fix, tested and currently working: go to and grab the token it generates from here. Also noted in #337 |
Thanks @mistafi. Unfortunately, token generated is temporary and valid just for a few hours. |
Thanks @vushe. I suspected it might be, but I couldn't find anything in the documentation about the time limit. Would you mind pointing me in that direction? Edited: Found the expiry. Snap. |
Not just this plugin, any plugin which uses Facebooks API system! |
Does anyone know how we get the server side social feed piece to work? https://github.com/pavelk2/social-feed-server /facebook?url={the facebook graph request url without access_token and without ?callback} |
Example: |
I'm having some trouble forming the URL based on this and figuring out how this fits in with the current plugin. I've tried this, but not getting a return: |
Why don't you remove this |
Hey @vushe, thanks for the direction. I tried using the call without the token and callback. Instead of a JSON object, I received Oauth errors. It still says you need a token. Facebook. Sigh. lol |
It's worth mentioning that juicer.io still works fine with Facebook. They have free plan with basic restrictions. Maybe for someone like me this is a good substitute for Feed example is here. |
I'm not with Facebook anymore, but reportedly API works fine now. Closing. |
Hi Guys.... I Made a video on how to get the Access token if you are doing this for a Facebook Fanpage. i Hope it helps. |
These access tokens are only valid for a couple of hours. |
@PauloPeres your method is wrong you get a temporary access token that is valid for a limited time. |
Shit I'm doing a job for a client and Facebook does not accept my application |
Hello,
could anyone kindly shed light on how to get access token for a Facebook feed?
Is the token available in example permanent and unlimited for all of us utilizing
social-feed.js
?I recently tried to obtain a new token from Facebook and, [how I got it], they demand app review to grant us permission to get feed.
The text was updated successfully, but these errors were encountered: