Facebook app domain name when using localhost
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.
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
- App Domain: localhost
- Click "+Add Platform" and choose "Website"
- Site URL: http://localhost:<port>/ (<port> is your port number)
- Save Changes
My solution:
- Leave App Domains empty
- (Products) Facebook login > Settings
- Add
http://localhost:85/my_app/
toValid OAuth redirect URIs
box - Save Changes
- Leave App Domains empty
- Go to Website with Facebook Login
- Add
http://localhost:port_number/
- Save changes and try again. For more information visit
http://developers.facebook.com/docs/samples/canvas/ Happy coding :-)