我的網站是:http://bit.ly/OF9NHSFacebook的登錄/連接窗口「凍結」 Perrmissions授予(XD PROXY)後
在對頁面的下半部分選擇啓用箱,當我點擊Facebook連接按鈕,然後登錄,它只是一個空白的窗口「掛起」,什麼都不做。
如何讓它繼續,以便將用戶信息返回給我的表單?
我在這裏搜索,但還沒有找到任何解決方案,我的情況。 謝謝:-)
這裏是我的代碼:
/////////////////////////////////////////////////////////////////////////////////////////////////////
/// facebook + optin box scripts
/////////////////////////////////////////////////////////////////////////////////////////////////////
window.fbAsyncInit = function() {
FB.init({
appId : '271302529636100', // App ID
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
};
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
ref.parentNode.insertBefore(js, ref);
}(document));
// FB.init({
// appId:'271302529636100', cookie:true,
// status:true, xfbml:true
// });
function register_with_fb_222(){
FB.login(function(response) {
if (response.authResponse) {
FB.api('/me', register_user_fb_222);
} else {
alert('You need to Grant Permission to Register with Facebook.')
}
}, {scope:'email,user_about_me'});
}
function register_user_fb_222(user){
document.getElementById('name1').value=user.first_name;
document.getElementById('email1').value=user.email;
document.forms['mainForm1'].submit.click();
}
不幸的是,一旦問題得到解決,這個問題就不再適用了,因爲問題的證據將會消失。 – JimmyPena 2012-08-02 18:41:56
嗨。我不確定我是否理解評論......但是我很樂意在解決此問題方面提供任何幫助:-)我添加了我的js代碼以防萬一。謝謝 – 2012-08-05 16:43:16
我的意思是,不要只鏈接到需要修復的網站。否則,一旦問題解決,這個問題將會對未來的訪問者失去任何價值。有關更多信息,請參見[我網站上的某些內容不起作用。我可以只粘貼一個鏈接嗎?](http://meta.stackexchange.com/q/125997/147645)。另外,除非您有具體的理由,否則請勿使用短鏈接。沒有人會點擊它們,因爲他們不知道鏈接的位置。你有10k以上的字符來陳述你的問題,沒有理由使用短鏈接。 – JimmyPena 2012-08-05 20:37:45