facebook An access token is required to request this resource -
i using facebook app upload videos user walls.
note: have user permission publish. script fine , works small videos success. have user extended token validity 60 days , debugged token , fine validity , have posting permissions.
my script posting working fine small videos.
issue
when try upload more 100 mb video 5 or 6 min length receive following api errors.
an access token required request resource.
an active access token must used query information current user.
note
when apply small videos works successfully.
test
i added same video same length 2 different sizes 1 720p ~121mb , other 480p ~42mb both same video.
but 480p ~42mb uploaded , 720p ~121mb failed , api throws error in error log
an access token required request resource.
$facebook->setaccesstoken($access_token); $facebook->setfileuploadsupport(true); $data = $facebook->api('/'.$user_id.'/videos', 'post', $args);
the issue resolved. placed bug in facebook bug. used code provided facebook support team , issue resolved. facebook support response:
"we not able replicate issue. if still experiencing issues, can setup testbench on server , run below example verify implementation? if can provide link testbench modified code below, helpful in replicating issue.
main code:
https://github.com/eosgood/fbphpsdk
modification video post:
https://gist.github.com/anonymous/6872121
we tested on our servers 177mb mkv video without failures."
Comments
Post a Comment