title: Sharing url to Facebook from AS3 website
body: <p>I'm trying to share a URL from a flash as3 website, and i can't make it work quite properly...
  I tried both ways given here : <a href="https://stackoverflow.com/questions/2511918/how-to-create-a-share-button-in-as3">How to create a share button in AS3</a></p>
  
  <p>First one works :</p>
  
  <pre><code>import flash.net.navigateToURL;
  import flash.net.URLVariables;
  import flash.net.URLRequest;
  import flash.net.URLRequestMethod;
  
  share_btn.addEventListener(MouseEvent.CLICK, shareClickHandler);
  
  function shareClickHandler(evt:MouseEvent):void
  {
      var varsShare:URLVariables = new URLVariables();
      varsShare.u = 'http://domain.com/pageN.html';
      varsShare.t = 'Title Page';
  
      var urlFacebookShare:URLRequest = new URLRequest('http://www.facebook.com/sharer.php');
      urlFacebookShare.data = varsShare;
      urlFacebookShare.method = URLRequestMethod.GET;
  
      navigateToURL(urlFacebookShare, '_blank');
  }
  </code></pre>
  
  <p>But, the post says :</p>
  
  <pre><code>In order to use a picture add the following Metatags:
  &lt;meta name="title" content="my title" /&gt;
  &lt;meta name="description" content="my description" /&gt;
  &lt;link rel="image_src" href="images/thumbnail_image.jpg" /&gt;
  </code></pre>
  
  <p>But HOW ????</p>
  
  <p>The second solution shows how to add parameters:</p>
  
  <pre><code>var req:URLRequest = new URLRequest();
  req.url = "http://www.facebook.com/dialog/feed";
  var vars:URLVariables = new URLVariables();
  vars.app_id = "000000000000"; // your application's id
  vars.link = "http://YourSite.com";
  vars.picture = "https://www.google.com/intl/en_com/images/srpr/logo3w.png";
  vars.name = "name name";
  vars.caption = "caption caption caption";
  vars.description = "description description description";
  vars.message = "message message message message message";
  vars.redirect_uri = "http://YourSite.com";
  req.data = vars;
  req.method = URLRequestMethod.GET;
  navigateToURL(req, "_blank");
  </code></pre>
  
  <p>But it's NOT using the Facebook sharer.....
  I tried many many different ways to combine both solutions but i get nothing but weird url not working...</p>
  
  <p>Please, can someone help me with that, or show me how to use that second solution but with the sharer ?</p>
  
  <p>Thanks a lot for any help</p>