title: update database when a user shared a link to facebook
body: <p>Is it possible to update database once a user shared a link in my website?</p>
  
  <p>Such as,some points will be awarded to their account if they shared the link.</p>
  
  <p>And how can I ensure that they really share the link to facebook but not just click share then close the popup window...</p>
  
  <p>I'm not familiar with facebook , and tried google it just now but still didn't find the answer...</p>
  
  <p>Thank you.</p>
  
  <p>Edit:</p>
  
  <pre><code>   &lt;script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" 
      type="text/javascript"&gt;
     &lt;/script&gt;
  
     &lt;a name="fb_share" type="button" share_url="script2.php?id=XXX"&gt; 
  </code></pre>