2013-03-13 80 views
1

我試圖讓一個簡單的Facebook像設置一起動態鏈接的視頻。下面的視頻功能(publishVidToFB())很好用!然而,我不能得到這個地獄般的「喜歡」爲除我之外的任何人工作。Facebook的像按鈕不張貼爲非FB應用程序Devs

該應用不處於沙盒模式。贊對我來說工作得很好,但我的評論沒有經過。對於這裏沒有被設置爲應用程序上的「Facebook開發者」的其他開發者,他們根本沒有在他們的新聞源中顯示他們。

FB調試器不是在抱怨任何東西,但在og:image標記中的圖像大小。

請參閱下面的代碼,請幫忙!

!DOCTYPE HTML

HTML

*head* 

    *meta property="fb:app_id" content="app id is here" * 
    *meta property="og:url" content="link back to the originating page is here... "* 
    *meta property="og:site_name" content="site name code is here like 'INTERNALCODE'"* 
    *meta property="og:image" content="web linkable image is here"* 
    *meta property="og:description" content="description blah blah."* 
    *meta property="og:type" content="company"* 
    *meta property="og:title" content="blah blah blah"* 
*/head* 
*body* 
    *div id="fb-root"**/div* 
    *input type="button" value="Publish" onclick="publishVidToFB(); return false;" * 
    *script* 

    window.fbAsyncInit = function() { 
      FB.init({ 
       appId  : 'my appid is here', // App ID 
       status  : true, // check login status 
       cookie  : true, // enable cookies to allow the server to access the session 
       oauth  : true, // enable OAuth 2.0 
       xfbml  : true // parse XFBML 
      }); 
     }; 

     (function(d, s, id) { 
      var js, fjs = d.getElementsByTagName(s)[0]; 
      if (d.getElementById(id)) return; 
      js = d.createElement(s); js.id = id; js.async = true; 
      js.src = document.location.protocol + "//connect.facebook.net/en_US/all.js"; 
      fjs.parentNode.insertBefore(js, fjs); 
     }(document, 'script', 'facebook-jssdk')); 


     function publishVidToFB(){ 
      FB.ui({ 
       method: "stream.publish", 
       user_message_prompt: "", 
       message: "message", 
       attachment: { 
        name: "Check out this cool video", 
        caption: "Video caption goes here etc etc etc", 
        href: "my href is here", 
        media:[{ 
         "type": "image", 
         "src": "image source is here", 
         "href": "myhref is here" 
        }] 
       } 
      }); 
     }; 

    */script* 
    *div class="fb-like" data-href="href is here" data-send="false" data-width="450" data-show-faces="false"**/div* 
*/body* 

/HTML

回答

0

解決。 Facebook將我所有測試的應用列入黑名單。等了幾天,在其他問題上工作,我們正在運行。

相關問題