I'm trying to upload video to facebook.
I configured all oneall facebook app with permissions:
email, public_profile, publish_actions, publish_pages, user_birthday, user_location
my code is : (using nodejs)
var publishVideo = function (params, res) {
oneall.user.publish(
params.user_token,
['facebook'],
{
video: {
// url: params.video_link
url: 'video or youtube URL here'
}
},
function (err, data, fullData) {
if (err) {
throw(err);
res.status(500).json({"status": "failed"});
} else {
res.status(200).json({"status": "ok", data: data.data});
}
console.log('Meaningful data: ', data);
console.log('Full data: ', fullData);
}
);
};
I'm getting 2 empty frames and when I click on it the video opens in new tab. tried couple videos (none youtube), all the same - empty frames.
How can I upload and create a normal facebook video youtube video on my wall?
Am I missing a parameter?
Thanks
Answers
could you post the link of a video here?
Or send it using our contact form if you do not want to post it here:
http://www.oneall.com/company/contact-us/
Regards,