简体   繁体   中英

Post video to user facebook wall using PHP

I want users of my website to upload videos with title and description. The posted video will be saved on server and also published to the user's facebook wall.

What I have done

  1. Save video on server.
  2. Create Facebook application to get the App Id and Secret ID.

How I can post the video to user's Facebook wall?

Just post a link to that video into facebook. It will automatically convert it, if I'm not wrong. Or you can add this into dummy page & post link to that one

    <meta name="video_width" content="460" />
    <meta name="video_height" content="460" />
    <meta name="video_type" content="application/x-shockwave-flash" />
    <link rel="image_src" href="http://addr.es/to/image.jpg" /> 
    <link rel="video_src" href="http://addr.es/to/video.swf "/>

it has to be flash object!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM