Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Invalid verification code format #606

Open
neyp opened this issue Apr 17, 2017 · 5 comments
Open

Invalid verification code format #606

neyp opened this issue Apr 17, 2017 · 5 comments

Comments

@neyp
Copy link

neyp commented Apr 17, 2017

Hi, I'm using Koala v2.5.0 and when I run oauth.get_access_token_info(access_token) (where access_token is the one returned by the JavaScript SDK login), I get the following error: Koala::Facebook::OAuthTokenRequestError: type: OAuthException, code: 100, message: Invalid verification code format. [HTTP 400]. Any clues?

@alfredoreduarte
Copy link

I'm also experiencing this issue. Apparently FB is returning the data in a different format.

@arsduo
Copy link
Owner

arsduo commented May 23, 2017 via email

@alfredoreduarte
Copy link

I've just tried using Faraday directly, like this:

conn = Faraday.new(:url => "#{ENV['FB_GRAPH_URL']}/#{fb_page_identifier}/tabs") do |faraday|
	faraday.response :logger
	faraday.adapter Faraday.default_adapter
	faraday.params['app_id'] = self.fb_application.app_id
	faraday.params['access_token'] = page_token
end

And I get the exact same error message as when I use Koala:

{"error":{"message":"(#100) Tab 'app_1303618956340973' does not exist on profile 1489449298018747","type":"OAuthException","code":100,"fbtrace_id":"Dd5o90M4feW"}}

I don't know where else to look for this, the parameters we're using are correct according to https://developers.facebook.com/docs/graph-api/reference/page/tabs/

@diegoacuna
Copy link

@alfredoreduarte did you manage to find a solution? I'm facing the same problem but not always, once in a while, in some requests, I get "Invalid verification code format" error.

@shorepound
Copy link

I get this error randomly as well. I'm trying to find a pattern. Hoping someone has some insight.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants