Meta property for videos uploaded from rails application

Hi all,

Iam having an issue with uploading videos to facebook from my rails
application. One of my team member said that we should send meta
properties of the video to post on facebook. Iam new to ROR and i dont
know how to get the meta properties. Please can anyone help me in this
with an example?

The code that he gave me was this:

I want to do it in rails

  <meta property="fb:app_id" content="87741124305">
     <meta property="og:url"
content="http://www.youtube.com/watch?v=UpI6y0UCGjQ">
     <meta property="og:title" content="We Found Love - Rihanna (feat.
Calvin Harris) (cover) Megan Nicole">
      <meta property="og:description"
content="http://itunes.apple.com/us/album/we-found-love-single/id479922983
Hey everyone hope you enjoy this cover! Lots of random awkward
dancing...haha Special thank...">

    <meta property="og:type" content="video">
     <meta property="og:image"
content="http://i2.ytimg.com/vi/UpI6y0UCGjQ/hqdefault.jpg">
       <meta property="og:video"
content="http://www.youtube.com/v/UpI6y0UCGjQ?version=3&autohide=1">
     <meta property="og:video:type"
content="application/x-shockwave-flash">
     <meta property="og:video:width" content="398">
     <meta property="og:video:height" content="224">
     <meta property="og:site_name" content="YouTube">