koala icon indicating copy to clipboard operation
koala copied to clipboard

Invalid verification code format

Open neyp opened this issue 7 years ago • 5 comments

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?

neyp avatar Apr 17 '17 20:04 neyp

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

alfredoreduarte avatar May 23 '17 08:05 alfredoreduarte

Thanks for the heads-up. If anyone wants to submit a PR for that I can review it this weekend, otherwise I'll put together a fix in the next week or two.

On Tue, May 23, 2017 at 03:00 Alfredo Re [email protected] wrote:

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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/arsduo/koala/issues/606#issuecomment-303320115, or mute the thread https://github.com/notifications/unsubscribe-auth/AAC8xUG_pfIjGJdiyqOZOZOd0zGNPrK7ks5r8pINgaJpZM4M_jY9 .

arsduo avatar May 23 '17 14:05 arsduo

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/

alfredoreduarte avatar May 23 '17 20:05 alfredoreduarte

@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.

diegoacuna avatar Nov 14 '17 18:11 diegoacuna

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

shorepound avatar May 08 '18 17:05 shorepound