Discuz X2 Facebook Connect 2.3
※ 本次FB官方更新(12/19),提供臨時初步手動方式修改,若非使BIG5版本者,可不需更新以下代碼。1. 修改風格檔 footer.htm:
找到FB.init({appId:'$_G['cache']['plugin']['facebook_connect']['appid']', status:true, cookie:true, xfbml:true, channelUrl:'{$_G}channel.html'});替換為FB.init({appId:'$_G',channelURL:'{$_G}channel.html',status:true,cookie:true,oauth:true,xfbml:true});找到function fblogin() {
FB.login(function(response) {
if (response.session) {
if (response.perms) {
location.replace('fblogin.php?act=logging&rf='+urlencode(location.href));
} else {
location.replace('index.php');
}
} else {
location.replace('index.php');
}
}, {perms:'email,user_likes,publish_stream'});
}
替換為function fblogin() {
FB.login(function(response) {
if (response.authResponse) {
location.replace('fblogin.php?act=logging&rf='+urlencode(location.href));
} else {
location.replace('index.php');
}
}, {scope:'email,user_likes,publish_stream'});
}最後儲存上傳覆蓋,後台更新緩存即可,此修改可以暫時解決FB無法正常登入問題,其餘請等待下次完整更新插件發佈。
謝謝提供.
頁:
[1]