0

I am trying to integrate facebook login with my website. I am following this link:

https://developers.facebook.com/docs/facebook-login/getting-started-web/

There, it says that " Replace YOUR_APP_ID with the app ID noted in Step 1 above and WWW.YOUR_DOMAIN.COM with your own domain. " for the following piece of code:

 window.fbAsyncInit = function() {
FB.init({
  appId      : 'YOUR_APP_ID', // App ID
  channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File
  status     : true, // check login status
  cookie     : true, // enable cookies to allow the server to access the session
  xfbml      : true  // parse XFBML
});

So my question is, what is my domain here? How can i find out what my domain is? Actually, what does this mean? Can anyone help?

Thanks

4

1 回答 1

1

很简单。您应该将带有名称的文件放入或制作channel.html到您的服务器。channel.html 文件的内容可以只有一行:

<script src="//connect.facebook.net/en_US/all.js"></script>

在您应该替换'//WWW.YOUR_DOMAIN.COM/channel.html'为服务器上文件的完整路径之后。这里//表示协议而不是http://https://

于 2013-07-11T21:28:04.560 回答