Take Your Search Game to the Next Level with Dropbox Dash 🚀✨ Curious how it works? Ask us here!
Forum Discussion
codecat15
8 years agoNew member | Level 2
OAuth2.0 throws invalid_grant type message while fetching the tokens from Xamarin forms Android app
I am using OAuth2.0 in my xamarin application and when i try to get the access token using the OAuth settings mentioned below I am able to get the access token, post my image on dropbx and everything...
Greg-DB
Dropbox Community Moderator
8 years agoAre you able to print out the full /oauth2/token HTTP response body for this error? It should contain a more detailed error message along with 'invalid_grant'.
Also, why are you using "https://www.dropbox.com/callback"? That's not a valid page on dropbox.com. (You can use https://www.dropbox.com/1/oauth2/redirect_receiver if you want though.)
Also, why are you using "https://www.dropbox.com/callback"? That's not a valid page on dropbox.com. (You can use https://www.dropbox.com/1/oauth2/redirect_receiver if you want though.)
codecat15
8 years agoNew member | Level 2
Thanks for the suggestion for the redirect url, since i am doing this in a mobile application the blocker that i am facing is it shows invalid_grant message for like 2seconds on the screen and then vanishes and takes me back to my mobile app with the token.
What i can do is wrap everything i did for my xamarin project and send it to you for reference and then maybe you can have a look at it if my explanation is not clear through comments or i can send a video too let me know
- Greg-DB8 years ago
Dropbox Community Moderator
Can you print out the actual /oauth2/token HTTP response body? That would be the best way to troubleshoot this.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,011 PostsLatest Activity: 21 hours ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!