Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
黑莓-Facebook网络连接_Facebook_Blackberry - Fatal编程技术网

黑莓-Facebook网络连接

黑莓-Facebook网络连接,facebook,blackberry,Facebook,Blackberry,我正在建设一个移动微型网站,目前我无法让facebook连接与blackberry一起工作。我得到一个错误,一个错误发生在。请稍后再试 我已经在所有其他我能接触到的设备上测试过了,只有黑莓手机给我出了问题 这是我用来加载应用程序的代码 <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({ appId : 'xxxxxxxxxxxxxxxxx',

我正在建设一个移动微型网站,目前我无法让facebook连接与blackberry一起工作。我得到一个错误,一个错误发生在。请稍后再试

我已经在所有其他我能接触到的设备上测试过了,只有黑莓手机给我出了问题

这是我用来加载应用程序的代码

<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
  appId      : 'xxxxxxxxxxxxxxxxx', // App ID
  status     : true, // check login status
  cookie     : true, // enable cookies to allow the server to access the session
  xfbml      : true  // parse XFBML
});

FB.Event.subscribe('auth.statusChange', handleStatusChange);
};

// 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));
</script>

<script>
function loginUser() {    
 FB.login(function(response) { }, {scope:'email'});     
 }
</script>
<script>
function handleResponseChange(response) {
  document.body.className = response.authResponse ? 'connected' : 'not_connected';
  if (response.authResponse) {
    console.log(response);
    updateUserInfo(response);
  }
}
</script>


<script>
function updateUserInfo(response) {
 FB.api('/me', function(response) {
  window.location.href='home.php';
 });
}
</script>


<div id="login"><p><button id="fblogin" onClick="loginUser();"></button></p></div>

发现OAuth更改正在破坏它。