Reputation: 53
I want to test my play/scala application which uses securesocial locally. It's running on localhost:9000/ on my windows machine. When I click on facebook login, it will produce the following URL: https://graph.facebook.com/oauth/authorize?scope=email&client_id={client_id}&redirect_uri=http%3A%2F%2Flocalhost%3A9000%2Fauth%2Fauthenticate%2Ffacebook&response_type=code&state=188fda6d-5660-4504-9493-4d9034dcd221
and will give the following response:
{
"error": {
"message": "Cannot load URL [...]",
"type": "OAuthException",
"code": 191,
"fbtrace_id": "{trace_code}"
}
}
My facebook app is setup as follows:
App Domain: localhost
URL of website: http://localhost:9000/
I looked already for solutions here and on google, but none of them is working. E.g. it was not working to modify hosts file to have another domain pointing to localhost.
Am I missing something? Or will be the only way to get it running to create some public ip/domain to my computer as with ngrok (http://ankurm.com/using-localhost-for-facebook-app-development/) or apache?
Does facebook really provide now simpler way for local testing? I cannot really believe that.
Upvotes: 0
Views: 72