koala
koala copied to clipboard
Invalid verification code format
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?
I'm also experiencing this issue. Apparently FB is returning the data in a different format.
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 .
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 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.
I get this error randomly as well. I'm trying to find a pattern. Hoping someone has some insight.