我正在尝试在我的网站上实施Facebook登录系统.
原文链接:https://www.f2er.com/php/132253.html虽然尝试连接到Facebook,我从控制台日志中收到错误:@H_404_2@
Unsafe JavaScript attempt to access frame with URL https://s-static.ak.fbcdn.net/connect/xd_proxy.PHP?xxxxxxxxxxxxxxxx
我正在使用JavaScript SDK@H_404_2@
<div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({ appId : 'xxxxxxxxxxxxxx',status : true,cookie : true,xfbml : true }); }; (function(d){ var js,id = 'facebook-jssdk'; if (d.getElementById(id)) {return;} js = d.createElement('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/en_US/all.js"; d.getElementsByTagName('head')[0].appendChild(js); }(document)); </script>
<div class="fb-login-button" data-perms="email">Login with Facebook</div>
我正在从本地主机测试 – 我已经在facebook开发应用程序(站点URL:http:// localhost)注册我的网站@H_404_2@