Facebook App: localhost no longer works as app domain

后端 未结 13 1391
我寻月下人不归
我寻月下人不归 2020-11-28 02:33

I\'ve been writing a game for Facebook using Rails and jQuery. Since I started using the Facebook Javascript SDK, using localhost as an app domain seemed to work just fine.

13条回答
  •  无人及你
    2020-11-28 03:03

    You can still test your app without deploying it on a remote sever like heroku. The trick is to update the etc/hosts file this way:

    127.0.0.1 mydomain.com
    

    Then on the Facebook App's settings, type [http://] mydomain.com, without the "[" and "]"

    It worked for me this way

提交回复
热议问题