Search code examples
facebookfacebook-graph-apifacebook-opengraphfacebook-sharer

Video share on facebook wall using Graph API


Am facing issue with sharing videos on facebook wall. Actually the video is sharing on FB wall but the video is not playing inline.

This is the shared page meta details,

<meta property="og:site_name" content="Staging Derbywire">
<meta property="og:url" content="http://staging.derbywire.com/video/ticker/102">
<meta property="og:title" content="Derbywire mobile market place">
<meta property="og:type" content="video">
<meta property="og:image" content="http://s3.amazonaws.com/derbywire_development/system/attachments/96/original/open-uri20130822-8464-10q2etf?1377170817">
<meta property="og:description" content="Derbywire is a collective space where creatives can sell buy digital content">
<meta property="og:video" content="http://staging.derbywire.com/video/player">
<meta property="og:video:type" content="application/x-shockwave-flash">
<meta property="og:video:width" content="480">

This is the link for that page http://staging.derbywire.com/video/ticker/102

enter image description here While validating this page using the following link

https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fstaging.derbywire.com%2Fvideo%2Fticker%2F102

enter image description here

Its not giving any errors, But its not playing the video.

I gave the source video URL as http://staging.derbywire.com/video/player

This page has the video player

enter image description here

All the configurations are i did correctly. But the video is not playing. But i changed the source as YOUTUBE link then it was working.

Can any one help me out from this issue.


Solution

  • <meta property="og:video" content="http://staging.derbywire.com/video/player" />
    <meta property="og:video:type" content="application/x-shockwave-flash" />
    

    You have to give the URL of the actual SWF file that plays the video here – the address you have given (http://staging.derbywire.com/video/player) however delivers a full HTML document. Facebook is not so silly to just embed full HTML documents into their page.

    So change that property to the address of a stand-alone SWF file that will play the actual video.