Facebook API posting with PHP <5.5 without CurlFile class -


i'm having trouble uploading file facebook php versions before 5.5 curlfile class not available.

as understand, should use @filepath source , should work, reason returns

exception occured, code: 353 message: (#353) must select video file upload. 

i've tried sending path using realpath() function, doesn't work.

$response = (new facebookrequest(                   $session, 'post', '/me/videos', array(                     'source' => '@'.realpath($url),                                     'description' => $description,                     'title' => $title                   )                 ))->execute()->getgraphobject(); 

does have solution this?


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -