Facebook壁挂回复是Webview中的空白屏幕卡在XD_proxy.php中

时间:2012-03-21 14:07:30

标签: facebook webview

  1. 我正试图在Webview上发布Facebook,它显示弹出窗口 分享内容,但取消或发布后,它不会回来 家庭共享屏幕或无法配置弹出窗口。相同 实现在浏览器中工作正常,但无法正常工作 网页视图。

    分享或取消后,应该回到共享屏幕,但它 没有回到共享屏幕并卡在XD_proxy.php身份验证中 facebook的链接

  2. 这是我的代码。

    window.fbAsyncInit = function() { 
        FB.init({appId: "App_id", status: true, cookie: true, xfbml: true}); 
    };
    
    (function() { 
        var e = document.createElement("script"); e.async = true; 
        e.src = document.location.protocol + "//connect.facebook.net/en_US/all.js"; 
        document.getElementById("fb-root").appendChild(e); 
    }());   
    
    function streamPublish() {      
    FB.ui(
      {
       method: 'stream-publish', 
       display: 'iframe',
       message: 'getting educated about Facebook Connect',
       name: 'Connect',
       caption: 'The Facebook Connect JavaScript SDK',
          description: (
          'A small JavaScript library that allows you to harness ' +
          'the power of Facebook, bringing the user\'s identity, ' +
          'social graph and distribution power to your site.'
       ),
       link: 'http://www.fbrell.com/',
       picture: 'http://www.fbrell.com/f8.jpg',
       actions: [
            { name: 'fbrell', link: 'http://www.fbrell.com/' }
       ],
      user_message_prompt: 'Share your thoughts about RELL'
      },
      function(response) {
        if (response && response.post_id) {
          alert('Post was published.');
        } else {
          alert('Post was not published.');
        }
      }
    );
    }
    

0 个答案:

没有答案