Native Facebook Login on android issue exchanging tokens

Hello everyone, I’m following the next guide to implement native facebook login on an android app:

I’m following this guide because facebook will deprecate webview login and will only accept native login.

Everything is working up until step 4. I am able to retrieve the session token and the correct user profile from Facebook without issues, but the problem arises in the last function “exchangeTokens”. Here’s where I get the “error exchanging tokens” log. I enabled logging and I am getting an “Unauthorized” response from okhttp.

I would love to get some help on this. Thanks a lot.

Token exchange error log.txt (6.4 KB)