I want to know how i get the access token

That sounds liek you are using implicit auth and the credential is in as a URI Fragment which server code cannot see.

You should be using

instead for user tokens