soixantecircuits / altruist

💌 Gateway micro service for sharing content with ease ✌️
8 stars 4 forks source link

Video upload on facebook action doesn't work #6

Open negabakuru opened 7 years ago

negabakuru commented 7 years ago

When I send a video stored on my computer to the facebook action

curl -X POST -H "Content-Type: multipart/form-data" -F "message=test" -F "media=@video.mp4" "http://localhost:6060/api/v1/actions/facebook"

The video seems to upload to facebook, but when I check on my wall, only the message is displayed.

gabrielstuff commented 7 years ago

Reading through : https://developers.facebook.com/docs/graph-api/video-uploads and https://developers.facebook.com/docs/graph-api/reference/video I'm wondering if we should not try to upload by chunk like here : https://github.com/MRdotB/facebook-api-video-upload/blob/master/index.js or there http://stackoverflow.com/a/42735040/632926

Any ways, let's try this various solutions.