Threads API Oauth Invalid redirect_uri
1

https://www.threads.net/oauth/authorize

After getting the code from the above API

https://graph.threads.net/oauth/access_token

When I tried to exchange it for a token from the above API,

an OAuthException occurred and the message "Invalid redirect_uri" was returned.

The redirect URI was valid when I got the code, so I don't think there's anything invalid, but is there something I'm missing in the settings?

If you know, please let me know.

Koutarou Asano
ถามแล้ว ประมาณหนึ่งสัปดาห์ที่แล้ว
Spark

Also i getting same problem with same scnerio when you find solution, add comment here.

26 มิถุนายน เวลา 05:20 น.
Paul

Can confirm, I’m also receiving the same issue.

26 มิถุนายน เวลา 18:30 น.
คำตอบที่เลือก
2

I haven't found it explicitly stated in the documentation, but my problem was that I was using localhost as my redirect. So I had to modify my hosts file and bind a custom domain to my localhost address. Though it is stated in the sample application: https://github.com/fbsamples/threads_api/blob/main/README.md at point number 4.

27 มิถุนายน เวลา 06:43 น.
Paul
คำตอบที่เลือก
1

In my environment, the problem was successfully solved using the information provided by Paul. thank you!

28 มิถุนายน เวลา 04:55 น.
Koutarou Asano
Paul

You’re welcome :)

28 มิถุนายน เวลา 04:58 น.