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="We Found Love - Rihanna (feat. Calvin Harris) (cover) Megan Nicole - YouTube;      <meta property="og:title" content="We Found Love - Rihanna (feat. Calvin Harris) (cover) Megan Nicole">       <meta property="og:description" content="‎We Found Love - Single by Megan Nicole on Apple Music 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&quot;&gt;        <meta property="og:video" content="We Found Love - Rihanna (feat. Calvin Harris) (cover) Megan Nicole - YouTube;      <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">