开发者

parameters of array to $facebook->api('/me/likes',

I want to post a video on my wall, I have tried using $facebook->api('/me/feed',post, array(...)) and works fine, but it only shows the "like" and "comment" functionality, I need to put the "share" functionality also.

I think I can work around it using '/me/likes' instead of '/me/feed' but I can't find anywhere which parameters should be inside the array

I am not really uploading a video, just the link to 开发者_JS百科YouTube.


You can use 'me/feed' to post a video. Try setting the 'source' parameter.

$facebook->api('/me/feed','POST', array(
        'source' => 'http://www.youtube.com/asdf1234',
        'name' => 'My video on YouTube'
    )
);

See here: https://developers.facebook.com/docs/reference/api/post/

Source: A URL to a Flash movie or video file to be embedded within the post

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜