I want to know how i get the access token

Ok I did as in the doc, now, how do I get the url of the redirect? it contains the token