1

我创建了一个新的 Facebook 应用程序,并使用以下 url 作为画布 url http://localhost/my_app/ 我的代码在 localhost 上完美运行,但是当我尝试使用以下 url 调用我的应用程序时:apps.facebook.com/ leenaaps 显示以下错误:

无法连接
Firefox 无法在 localhost 上建立与服务器的连接

究竟是什么问题?

4

2 回答 2

2

您很可能没有运行本地网络服务器。如果您这样做了,Facebook 可能会使用https://但您没有配置/启用 SSL。

于 2012-04-24T08:33:44.640 回答
0

localhost is resolved to ip 127.0.0.1 and this is the local loopback address whcih means it is not routable and cannot be accessed from the internet, So you cannot use it in your canvas url.

You have to use a valid and active domain name like domain.com. If you don't have a public web server you may use some DDNS service, google it some are free

于 2012-04-24T08:44:52.060 回答