46

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.

4 Answers4

69

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

Khem Raj Regmi
  • 2,130
  • 19
  • 21
  • 1
    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. – Loren Oct 18 '19 at 15:00
  • 1
    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. – Jeremy Thille May 06 '20 at 08:31
  • 2
    referred link seems broken as on today – Ravinder Reddy May 28 '20 at 07:19
  • @RavinderReddy it is remove by fb this link may help you https://developers.facebook.com/docs/messenger-platform/getting-started/app-setup/ – Khem Raj Regmi May 28 '20 at 16:27
12

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

Cedric Ipkiss
  • 5,662
  • 2
  • 43
  • 72
6

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

Maihan Nijat
  • 9,054
  • 11
  • 62
  • 110
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.