Posting an embedded video link using the Facebook Graph API

后端 未结 7 1927
独厮守ぢ
独厮守ぢ 2020-12-02 06:29

When manually attaching a video link (from YouTube, Vimeo, etc) to a post using the Facebook web interface, Facebook automatically recognizes the link as a video, and allows

7条回答
  •  萌比男神i
    2020-12-02 07:24

    Sharing as a link with /links instead of /feed seems to work better. YouTube, Vimeo, and Facebook videos are embedded as if posting manually.

    curl -F 'access_token=...' \
         -F 'message=Link to YouTube' \
         -F 'link=http://www.youtube.com/watch?v=3aICB2mUu2k' \
         https://graph.facebook.com/me/links
    

提交回复
热议问题