fbsamples / threads_api

This repository contains a sample app for developers who are interested in integrating with the Threads API.
Other
171 stars 26 forks source link

Make sure you add your application's redirect URL #13

Closed jeppan875 closed 1 month ago

jeppan875 commented 2 months ago

In the readme you write: "Make sure you add your application's redirect URL e.g. https://threads-sample.meta:8000/callback, to your app's redirect callback URLs in the app dashboard."

Where do I find this in my app dashboard? Could you show w ith pictures because I been looking and trying every possible field.

joeldenning commented 1 month ago

I also am running into this problem. The following URL has a screenshot of an older version of the meta app website which has the fields needed, but I do not see the fields in the live Meta App dashboard:

https://wpdiscuz.com/community/troubleshooting/facebook-login-and-url-blocking/

{
error_message: "URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.",
error_code: 1349168
}
joeldenning commented 1 month ago

This Stack Overflow answer seems related:

https://stackoverflow.com/a/77292623/1958941

joeldenning commented 1 month ago

I found the solution. When viewing the Meta App, click on "Use cases" in the left menu. Then click on "Settings" underneath the "Access the Threads API" section. Note that you must fill out all three fields (uninstall, redirect, and delete callback urls) in order for the form to successfully save.

The url for this page is at https://developers.facebook.com/apps/APP_ID/use_cases/customize/?use_case_enum=THREADS_API (replace APP_ID with your app id)

image

anujs3 commented 1 month ago

Hi @jeppan875! The screenshot and sample URL that @joeldenning provided should help you find where you need to go in order to configure your redirect URL. Please follow the steps that @joeldenning provided above.

If you are still facing issues, please open a new issue. Thanks!