开发者

Uploading Videos using the PHP SDK

I see here that you can now upload videos: http://developers.facebook.com/blog/post/515/#video_upload

But I don't see any mention of it in the PHP SDK on github, or any examples... Is it not added there yet? Or is there anyway to do it using the PHP 开发者_Python百科SDK, as opposed to throwing it up there using curl?

Thanks!


Jason,

Make sure, if you are using the sdk, to $facebook->setFileUploadSupport(true); and then can post to the api:

try {
    $data = $facebook->api('/me/videos', 'post', $args); 
} catch (FacebookApiException $e) {
    echo "result=ERROR&message=".$e->getMessage();
                die();
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜