Share link to Facebook Wall, flash-player preview into wall

873 views
Skip to first unread message

zvonchuk

unread,
Apr 6, 2012, 2:31:32 AM4/6/12
to oem...@googlegroups.com

When I add the link for video from youtube.com site to Facebook Wall the followings are appear on my Facebook

  1. Title
  2. Description
  3. Image Preview

When I click on Image Preview on my Facebook the Youtube video start to playing.

I want to copy this functionality to my site too.

I want that when I add the link(http://360view.az/oembed-360view-3.html) to my Facebook Wall the Image Preview will appear.

And then when I will click on Image Preview the Flash Player will appear.

Now when I click on Image Preview it open a new window.

I have added all youtube tags to my site.

<link href="http://360view.az/az/oembed/index/format/xml/45" rel="alternate" type="text/xml+oembed" />
<link href="http://360view.az/az/oembed/index/format/json/45" rel="alternate" type="application/json+oembed" />
<meta property="og:url" content="http://360view.az/oembed-360view-3.html">
<meta property="og:title" content="AlmaStore - Neftçilər prospekti(og:title)">
<meta property="og:description" content="Description">
<meta property="og:type" content="video">
<meta property="og:image" content="http://360view.az/public/og-images/4d963669c287d7e7e6efc044.jpg">
<meta property="og:video" content="http://360view.az/public/flash/krpano.swf?xml=http://360view.az/az/pano/xml/45">
<meta property="og:video:type" content="application/x-shockwave-flash">
<meta property="og:video:width" content="396">
<meta property="og:video:height" content="297">
<meta property="og:site_name" content="360view">

For testing I created 2 html-file

http://360view.az/oembed-360view-3.html - for

<link href="http://360view.az/az/oembed/index/format/xml/45" rel="alternate" type="text/xml+oembed" />
<link href="http://360view.az/az/oembed/index/format/json/45" rel="alternate" type="application/json+oembed" />

http://360view.az/oembed-yotube.html - for 

<link rel="alternate" type="application/json+oembed" href="http://www.youtube.com/oembed?url=%2Fwatch%3Fv%3DD1R-jKKp3NA&amp;format=json" title="Steve Jobs Stanford Commencement Speech 2005">
 <link rel="alternate" type="text/xml+oembed" href="http://www.youtube.com/oembed?url=%2Fwatch%3Fv%3DD1R-jKKp3NA&amp;format=xml" title="Steve Jobs Stanford Commencement Speech 2005">

http://360view.az/oembed-yotube.html - works fine, when I click on Image Preview the video is open.

http://360view.az/oembed-360view-3.html - dont work, when I click on Image Preview it open a new window :-(



Adrian Sevitz

unread,
Apr 6, 2012, 6:44:59 AM4/6/12
to oem...@googlegroups.com
I've found that if a user has Facebook security on, it forces it to open in a new window.

try adding a  <meta property="og:video:secure_url"  content="Add-Secure-Video-URL"/> 





_____________________________
Adrian Sevitz 

twitter:  twitter.com/vzaar 





Reply all
Reply to author
Forward
0 new messages