App domains must match the domain of the Facebook Web Games URL (https), Mobile Site URL, Unity Binary URL, Site URL or Secure Page Tab URL
Asked Answered
S

4

48

I am developing Spring Boot + Facebook Integration example. In this example, I've created an at app https://developers.facebook.com/. The screen shot of the created app shown below.

Also when I was passing the Domain name I am getting the below error:

App domains must match the domain of the Facebook Web Games URL (https), Mobile 
Site URL, Unity Binary URL, Site URL or Secure Page Tab URL. Please correct these
domains: localhost

enter image description here

I am using the same code mentioned in the URL blocked: This redirect failed because the redirect URI is not white-listed in the app's client OAuth settings. Make sure that the client and web .

Please guide and let me know if need any other details.

Selfassertion answered 12/6, 2017 at 17:22 Comment(0)
A
73

1 - Click Apps and then select your app.

2 - Click the Settings button on the left side of the screen.

3 - In the Basic settings, click the Add Platform button below the settings configuration.

4 -Select Website in the platform dialog.

5 - Enter your URL (localhost works here).

6 - In the App Domains text input, add your domain that matches the one in the URL.

7 - Save your settings.

Check this link for detail

Aloisius answered 3/5, 2018 at 6:18 Comment(4)
Also make sure the "Site URL" field at the bottom of the Basic Settings page matches the domain you enter in "App Domains" near the top. If one contains https, the other needs to also.Knockwurst
Did all that exactly, one line at a time. "Localhost" was accepted both in Site URL and in App domains. I could save my changes. Still getting The method FB.login can no longer be called from http pages in my console. God do I dislike Facebook.Chadd
referred link seems broken as on todayNabalas
@RavinderReddy it is remove by fb this link may help you developers.facebook.com/docs/messenger-platform/getting-started/…Aloisius
A
12

You need to add the platform (website, facebook web games, android, etc.) your app is running on first. See The explanation from Facebook

Ahab answered 13/10, 2017 at 4:59 Comment(2)
referred link seems broken as on todayNabalas
It worked. I needed to add a website prior to add my website's URL into there.Unending
H
6

Add localhost under the Website > Site URL save and then add localhost in the App domain.

Hutton answered 18/9, 2018 at 14:36 Comment(3)
Thanks a lot this is really helpfulJolo
I need to add localhost and the domain.com for testing. How do I add both domains?Mailable
Did that, it was accepted and I could save my changes. Still getting The method FB.login can no longer be called from http pages in the localhost console.Chadd
B
0

1 - Be in development mode

2 - In you facebook developer dashboard select the concerned app.

3 - Go to the Settings button on the left side.

4 - In the Basic settings, click the Add Platform button below the settings configuration.

5 -Select Website in the platform dialog.

6 - Enter your URL (localhost works here).

7 - In the App Domains text input, add your domain that matches the one in the URL.

8 - Save your settings.

Bondman answered 24/9, 2022 at 4:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.