fernandezpablo85/scribe-java — Issue #191: FacebookExample problem.
Author: kadorrna
Created: 2011-11-16 13:40:37+00:00
State: open

Hi,
I am trying to use scribe with a facebook api and I can't make the example work.

My console is logging the following:
Fetching the Authorization URL...
Got the Authorization URL!
Now go and authorize Scribe here:
https://www.facebook.com/dialog/oauth?client_id=196658887055133&redirect_uri=http%3A%2F%2F192.168.10.147%3A8080%2Floginpage
And paste the authorization code here
>>https://www.facebook.com/dialog/oauth?client_id=196658887055133&redirect_uri=http%3A%2F%2F192.168.10.147%3A8080%2Floginpage

Trading the Request Token for an Access Token...

And is giving me the following error:
Processing of request failed with uncaught exception: Response body is incorrect. Can't extract a token from this: '{"error":{"message":"Invalid verification code format.","type":"OAuthException"}}'
org.apache.tapestry5.runtime.ComponentEventException: Response body is incorrect. Can't extract a token from this: '{"error":{"message":"Invalid verification code format.","type":"OAuthException"}}' [at classpath:ar/com/condor/pages/LoginPage.tml, line 19]

I have tried the url https://www.facebook.com/dialog/oauth?client_id=196658887055133&redirect_uri=http%3A%2F%2F192.168.10.147%3A8080%2Floginpage directly from the browser and it redirects me fine.

Can somebody give me a hint?

Thanks in advance.