0

構築中のモバイル マイクロサイトがあり、現在、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>
4

1 に答える 1

0

OAuth の変更がそれを壊していることがわかりました。
https://developers.facebook.com/bugs/416132398431057?browse=search_4fd05d1660f9a9c22137268

于 2012-06-13T20:46:48.777 に答える