Configure Facebook application domain as IP address

I have a facebook login on my site that I tested locally on localhost . Now I put it on the server and I'm trying to change the configuration of the facebook application so that I can make a login. Before I:

 App Domain: localhost Site URL: http://localhost/ Mobile URL: http://localhost/ 

Now I'm trying to change localhost for the IP address of my website: 107.170.**.**7:8776 , so first I set the website URL and mobile phone URL to http://107.170.**.**7:8776/ , but when I try to set the application domain to 107.170.**.**7:8776 , I get an exclamation:

 This must be derived from Canvas URL, Secure Canvas URL, Unity Binary URL, Site URL, Mobile Site URL, Page Tab URL or Secure Page Tab URL. Check and correct the following domains: 107.170.**.**7:8776 

What am I missing here?

Thanks in advance.

+5
source share
1 answer

Facebook seems to require a valid domain instead of an IP address. Not sure why, since they don't mention this in facebook developer docs anywhere (from what I can say)

Additional Information: facebook application domain name: [IP address] is not a valid domain.

+3
source

Source: https://habr.com/ru/post/1207944/


All Articles