facebook登录空白页面

时间:2014-09-04 05:54:31

标签: facebook authentication login parse-platform

我使用解析sdk并希望实现FB登录但是当我点击按钮登录弹出窗口时如果我没有登录fb之前它要求我提供凭证,之后会显示一个空白页面地址 https://www.facebook.com/dialog/oauth?app_id=%7Bappid%7D&client_id {client id}& display = popup& domain = {domain}& e2e =%7B%7D& locale = en_US& origin = 1& redirect_uri = http%3A%2F%2Fstatic.ak.facebook .COM%2Fconnect%2Fxd_arbiter.php%3Fversion%3D29%23CB%3Df2356881fe8e6bc%26domain%3D {域}%26origin%3Dhttp%253A%252F%252F {域}%252Ff1d6980bbb127d2%26relation%3Dopener%26frame%3Df17ee4a3b5fd2e8&安培; RESPONSE_TYPE =记号%2Csigned_request&安培;范围=电子邮件%2Cpublish_stream&安培; SDK =乔伊

它没有自动关闭并重定向到我的网页。

在此空白页面弹出窗口中,查看源代码并查看一些js:var message =" cb = f1a6be948fefda& domain = {domain}& origin = http \ u00253A \ u00252F \ u00252Fjebsenwine.dev.cleargo.com \ u00252Ffe2018a8b499c4& relation = opener& frame = f7e1c0c9232fd2& access_token = {access token}& base_domain =&#34 ;, origin =" http:// {domain}",domain =" {域}&#34 ;; document.domain =' facebook.com';(function(){var a = window.opener || window.parent,b =' fb_xdm_frame _' + location.protocol.replace(& #39;:',''); function c(){try {a.frames [b] .proxyMessage(message,origin);} catch(e){setTimeout(c, 100);}} function d(){_ fbNative.postMessage(message,origin);} if(window == top&& / FBAN / \ w +; / i.test(navigator.userAgent)){if(window。 _fbNative&& __ fbNative.postMessage){d();} else window.addEventListener(' fbNativeReady',d);} else c();})();

0 个答案:

没有答案