Facebook app domain name when using localhost

前端 未结 16 677
说谎
说谎 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:56

    I develop locally and I use this URL: localhost/fb

    Then I had to add a website with the following URL: http://localhost

    Under App Domains I added localhost.

    Now it works. The only issue I had was, that you have to use this URL in all of your scripts. E.g.

    $loginUrl = $helper->getLoginUrl('http://localhost/fb/login-callback.php', $permissions);
    

    You can't use 127.0.0.1 here ...

提交回复
热议问题