使用Facebook的API使用Feed对话框发布视频失败 [英] Using Facebook's API to post a video using the feed dialog fails

查看:266
本文介绍了使用Facebook的API使用Feed对话框发布视频失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Facebook的Feed对话框将视频发布到用户的时间轴。当我使用JavaScript SDK时:

I'm trying to post a video to a user's timeline using Facebook's feed dialog. When I use the javascript SDK with:

FB.ui({
     method:'feed',
     name: 'testing',
     link: 'http://www.facebook.com',
     picture: 'http://img.youtube.com/vi/1CE6W5BubQo/0.jpg',
     source: 'http://www.youtube.com/watch?v=1CE6W5BubQo'
});

我得到:

这是缺少缩略图和视频播放器。我尝试添加类型:'video'到参数中,我也尝试用直接链接替换 source 参数.swf文件,但是没有帮助。我不知道这是否是一个错误,或者我做错了什么。任何想法?

And this is missing the thumbnail and video player. I tried adding type: 'video' to the parameters and I also tried replacing the source parameter with a direct link to the .swf file, but that didn't help. I'm not sure if this is a bug or if I'm doing something wrong. Any ideas?

推荐答案

这样做:

FB.ui(
  {
    method: 'feed',
    name: 'testing',
    link: 'http://www.facebook.com',
    picture: 'http://img.youtube.com/vi/1CE6W5BubQo/0.jpg',
    //caption: '',
    description: '',
    source: 'https://www.youtube.com/v/1CE6W5BubQo?version=3&autohide=1&autoplay=1'
  },...

这篇关于使用Facebook的API使用Feed对话框发布视频失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆