Get access_token with java

590 Views Asked by At

After my request for the access_token i see it on a blank html page, on FB url and not on my address. Exactly like in FB doc: http://developers.facebook.com/attachment/auth_token.png

I want it to redirect to my url so i can do the check: if (request.getParameter("access_token") != null and get access_token this way, but it doesn't happen. (&redirect_uri= is correct in my requests - it did redirect back when asken for code=)

1

There are 1 best solutions below

0
On

It seems I can't comment. Maybe an admin can convert this into a comment?

Just wanted to say that the scribe project makes it very easy to obtain an access token. More here: https://github.com/fernandezpablo85/scribe-java