开发者

Uploading Videos using the PHP SDK

开发者 https://www.devze.com 2023-04-13 04:57 出处:网络
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 t

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

精彩评论

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

关注公众号