Still Getting Bad Request (HTTP 400). Failed to get an access token Despite 2.6 Update #28
Comments
Did you set the "valid oauth redirect URL" as described in point (4)? Pls also try what other's have suggested at #20 (comment) -- although I've tested it with the port setting and worked fine, but I can imagine that in some environments it works the other way. |
Yes, the valid oauth redirect URL defaults to the address given before the UI changes. Also did run the port setting. Gonna try creating a new app. |
Thanks, let me know how it works. If still having issues, pls share your |
Same problem with new app, attaching session info. It is weird, because in the browser I give the permissions but I don't get the token.
|
I tried previously what you said and it didn't work. However, today when I tried I got a different error completely.
Here is the session info:
|
@dkomd you have to define @tokumotion thanks for the |
@daroczig Hi, it seems the problem comes from the update in the FB API. This is the verbose error I get:
|
Found the fix. Seems with the new Ran this and worked:
|
@tokumotion the error message says "Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request" -- can you pls double check if you have the correct URL set on the UI, something like: |
Ah, OK, I'm glad you figured this out. Thanks for reporting back! |
You may need to update the package instructions for getting the token, as it currently includes the |
Note to all who still have problems with this: you can specify the fb_token_oauth <- oauth2.0_token(oauth_endpoints("facebook"), app,
scope = c("ads_management", "read_insights"),
type = "application/x-www-form-urlencoded",
cache = FALSE) note that for me the token landed in the name of an empty list; to extract, this will work: |
Hi,
I am using the following code which is the updated code for 2.6V..
However, I still get the same error:
Any thoughts/ideas on why is this happening?
Thanks!
The text was updated successfully, but these errors were encountered: