title: How to add Facebook share button to share a youtube video you've embedded on your site
body: <p>I have a webpage where I've embedded a youtube video. I need to add a facebook share button to this page to share the youtube video (not to share the webpage, only the video)</p>
  
  <p>I added the following HTML code and managed to get it done.</p>
  
  <pre><code>&lt;center&gt;&lt;div id='pageshare' title='Share This With Your Friends'&gt;&lt;div class='sbutton' id='fb'&gt;&lt;image src='http://static.ak.fbcdn.net//rsrc.php//v1//yg//r//yZiDLhSvAE9.gif'&gt;&lt;/image&gt;&lt;a name='fb_share' type='box_count' href='http://www.facebook.com/sharer.php?u="+location+"'&gt;Share&lt;/a&gt;&lt;/div&gt;&lt;/center&gt;
  </code></pre>
  
  <p>but then it justs add one image of a share button which is not what you really see in other places. (Here location is a variable which contains the url of my youtube video)</p>
  
  <p>When I used this code </p>
  
  <pre><code>&lt;center&gt;&lt;div id='pageshare' title='Share This With Your Friends'&gt;&lt;div class='sbutton' id='fb'&gt;&lt;a name='fb_share' type='box_count' href='http://www.facebook.com/sharer.php?u="+location+"'&gt;Share&lt;/a&gt;&lt;script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share?' type='text/javascript'&gt;&lt;/script&gt;&lt;/div&gt;&lt;/center&gt;
  </code></pre>
  
  <p>I'm getting the correct fb share button, but it's not sharing the video instead it's sharing the url of my webpage.</p>
  
  <p>Can someone help me with this issue.</p>
  
  <p>Thanks in advance.</p>