Facebook app domain name when using localhost

前端 未结 16 674
说谎
说谎 2020-12-07 13:18

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

16条回答
  •  春和景丽
    2020-12-07 13:58

    This is what I used to do.

    If you are using Windows, you need to modify the host file. Host file location will be at %SystemRoot%\System32\drivers\etc\

    Add a new line in host file like this

    127.0.0.1    localhost.YOUR-SITE-NAME.com
    

    Save the host file.

    Go to FB apps setting control panel and give localhost.YOUR-SITE-NAME.com in Apps domain field. Save changes.

    Now load you local environment like localhost.YOUR-SITE-NAME.com from your browser.

    NB: change YOUR-SITE-NAME with your domain name.

提交回复
热议问题