2013-03-13 29 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将我所有测试的应用列入黑名单。等了几天,在其他问题上工作,我们正在运行。

相关问题