Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't Load URL: The domain of this URL isn't included in the app's domains - Facebook Login

I'm trying to get access token from user

string response_script = "<script>top.location.href='https://www.facebook.com/v2.4/dialog/oauth?response_type=token&client_id=[APPLICATION ID]&redirect_uri=https://www.facebook.com/[APPLICATION URL]/?sk=app_[PAGE ID]&scope='; </script>"; 

But I'm getting an error:

Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.

That code works well. So I think that needs to add my url to

Valid OAuth redirect URIs

But It doesn't exists in advanced section anymore. facebook changed it's design and now it looks like this. It's too big image and because I have it in out of stackoverflow

What can I do?

like image 212
gsiradze Avatar asked May 16 '16 13:05

gsiradze


People also ask

How do you fix Facebook apps error can't load URL the domain of this URL isn't included in the app's domains?

Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.

How do you add a domain to the Facebook app?

Before you enter your domain, first click on Add Platform, select website, enter your site URL and mobile site url. Save the settings. Thereafter, you can enter the domain name in the App domains field.


1 Answers

I had the same issue as you, I figured it out. Facebook now roles some features as plugins. In the left hand side select Products and add product. Then select Facbook Login. Pretty straight forward from there, you'll see all the Oauth options show up.

like image 198
Neo Avatar answered Sep 24 '22 07:09

Neo