I have logged in a user to my app from FB.login
now I want to post to the user timeline on the behalf of user. I want to upload a video to the user timeline. I am doing something like:
FB.api( `/${user_id}/videos`, "POST", { "file_url": video, "description": description, "thumb": video_thumbnail, "title": title, }, function (response) { console.log("fb response") console.log(response) if (response && !response.error) { /* handle the result */ console.log("video upload response") console.log(response) } }, {scope: ['user_videos', 'user_actions.video']});
When I do this it is giving me error saying code: 100 fbtrace_id: "F1BDJWtcTXl" message: "Unsupported post request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api" type: "GraphMethodException"
Why I am getting this error ??
Help is appriciated ..
Thank you