1

ビデオの動的リンクとともに、セットアップのような単純な Facebook を取得しようとしています。以下のビデオ機能 (publishVidToFB()) はうまく機能します。しかし、私はこの地獄のような「いいね」を私以外の誰かのために働かせることはできません.

アプリはサンドボックス モードではありません。いいねはうまくいきますが、コメントが届きません。アプリで「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

4

1 に答える 1