时间轴上的视频帖子没有内联播放

Sha*_*rer 7 flash video facebook facebook-graph-api facebook-php-sdk

在使用TimeLine配置文件的用户通过我的应用发布视频时出现问题.帖子显得非常小,点击后视频会在新标签页上打开,而不是在Facebook内播放.

以下是一些细节:

我正在构建一个创建自定义视频(SWF)的应用程序,并将其发布在用户的朋友墙上.我将SWF文件"包装"在包含以下"meta og:"标签的HTML文件中 -

    <meta property="fb:app_id" content="******" />
    <meta property="og:url" content="THIS PAGE URL" />
    <meta property="og:title" content="Title" /> 
    <meta property="og:description" content="some description" /> 
    <meta property="og:type" content="video" />
    <meta property="og:image" content="an img url" />   
    <meta property="og:video" content="URL TO THE SWF FILE" />  
    <meta property="og:video:type" content="application/x-shockwave-flash" />
    <meta property="og:video:width" content="396" />
    <meta property="og:video:height" content="297" />
    <meta property="og:site_name" content="pickle-games" />
Run Code Online (Sandbox Code Playgroud)

然后在体内我使用"嵌入"标签嵌入SWF.
您可以通过查看http://pickle-games.com/BigBully/hitVideo.php?hit_id=1327242593&hit=hit2的来源查看示例

我正在使用facebook PHP SDK在墙上发布如下:

$facebook->api("/" . $uid . "/feed", "POST",
                        array(
                        'link' => $server_url . 'hitVideo.php?hit='. $hit . "&hit_id=".$hit_id ."&u_name=" . $u_name . "&f_name=". $f_name                  
                             ));
Run Code Online (Sandbox Code Playgroud)

在使用旧配置文件(不是时间轴)的用户上发布时,一切正常,视频在墙上播放.

如上所述,问题仅在使用TimeLine配置文件的用户上发布时

顺便说一句 - 如果我在朋友的时间线上手动(而不是通过我的应用程序)共享链接,那么一切正常......

我错过了什么?我如何通过我的应用程序发布它,它也将在时间轴上工作?谢谢.

小智 3

尝试这个

$attachment = array(
        'message' => 'SOMETHING HERE!',
        'name' => 'name!',
        'caption' => 'caption!',
        'link' => 'http://link.com',
        'description' => 'description here!',
        'access_token' => $request["oauth_token"],
        'picture' => 'http://link.com/image.jpg',
        'source' => 'link.com/flash.swf',
        'actions' => array(array('name' => 'some action',
                          'link' => 'https://link.com/'))
);      

$result = $facebook->api('/'.$friend_id.'/feed/','post',$attachment);
Run Code Online (Sandbox Code Playgroud)

在“消息”中添加一些内容非常重要,否则会给您带来同样的错误......