0

I am using the following command to post a video link from youtube into facebook:

client.put_wall_post options[:message].text, {
    :name => "Type O Negative",
    :link => "http://www.youtube.com/watch?v=E67D-ZCuoEw",
    :description => "Type O Negative"} , "me"

It works fine and facebook displays the first thumb for this image which is http://img.youtube.com/vi/E67D-ZCuoEw/1.jpg

enter image description here

But i want the second thumb: http://img.youtube.com/vi/E67D-ZCuoEw/2.jpg

enter image description here

So i pass the :picture argument as follows:

client.put_wall_post options[:message].text, {
    :name => "Type O Negative",
    :link => "http://www.youtube.com/watch?v=E67D-ZCuoEw",
    :picture = > "http://img.youtube.com/vi/E67D-ZCuoEw/2.jpg",  
    :description => "Type O Negative"} , "me"

Doing this facebook does not recognizes my link as a embedded video and just shows the thumb with a link to the youtube page.

Any idea what is going on?

4

2 回答 2

0

您是否尝试put_picture过从 Koala API 使用?

http://rubydoc.info/github/arsduo/koala/Koala/Facebook/GraphAPIMethods#put_picture-instance_method

尽管它的名字,它显然对视频的运作方式相同。

像你一样,我已经使用put_wall_post它并且它适用于基本链接,但你可能会考虑使用 API 中更具体的东西。

于 2014-05-28T15:59:00.127 回答
-1

尝试使用类似http://www.youtube.com/v/E67D-ZCuoEw的 URI而不是http://www.youtube.com/watch?v=E67D-ZCuoEw

于 2011-08-24T20:50:08.063 回答