Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook app domain name when using localhost

Tags:

facebook

From a tutorial here:
http://ankurm.com/blog/api/using-localhost-for-facebook-app-development/1091/

I tried to set up a Local development Area for my Facebook app. But when I put "http://localhost:85/my_app/" as my domain name, Facebook says

App Domains: "http://localhost:85/app-name/" should not contain protocol information.

Also when I put "localhost:85/my_app/" as my domain name, I get the error:

App Domains: localhost:85/my_app/ is not a valid domain.

like image 235
Sanya Tobi Avatar asked Nov 14 '12 10:11

Sanya Tobi


People also ask

How can I login to facebook in localhost?

You need to register as facebook developer and create you app there. Once you have your web app registered you can go to your app and click on add product. Add Facebook Login. Then enable Web OAuth Login and add your localhost in the textfield below and save, you should be able to access it.

What is facebook app domain?

It's simply the domain that your "facebook" application (wich means application visible on facebook but hosted on the website www.xyz.com) will be hosted. So you can put App Domain = www.xyz.com.

Does app have domain name?

App domain names officially became available to register on May 8, 2018, and there was clearly a lot of demand. People registered over 150,000 names ending in . app within the first 24 hours! Why all of the buzz with this top level domain (TLD)?


Video Answer


1 Answers

It seems like the protocol has been changed.

Here is my solution (I tested on 3rd April 2015 and it works well):

In Settings -> Basic tab

  1. App Domain: localhost
  2. Click "+Add Platform" and choose "Website"
  3. Site URL: http://localhost:<port>/ (<port> is your port number)
  4. Save Changes
like image 92
Supasate Avatar answered Oct 05 '22 12:10

Supasate