时间线上的视频帖子未联机播放



我在使用TimeLine配置文件的用户上通过应用程序发布视频时遇到问题。这个帖子看起来很小,点击后,视频会在一个新的选项卡上打开,而不是在facebook内播放。

以下是一些详细信息:

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

    <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" />

然后在正文中,我使用"embed"标记嵌入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                  
                             ));

当用旧的个人资料(而不是时间线)在用户上发帖时,一切都很好,视频在墙上在线播放。

如上所述,问题只是当在使用TimeLine配置文件的用户上发帖时

BTW-如果我在朋友的时间线上手动共享链接(而不是通过我的应用程序),那么一切都很好。。。

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

试试这个

$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);

在"消息"中放一些东西是非常重要的,否则会给你同样的错误。。。

如果您没有,请注意

<meta property="fb:app_id" content="xxxxxxxxxxxxxxxx" />

张贴到墙上后,视频将在NEW窗口中打开。

最新更新