facebook share a web page


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <div style='float:right; margin-left:10px;'>
  2. <script>var fbShare = {
  3. url: 'http://chethstudios.blgospot.com/',
  4. size: 'small',
  5. google_analytics: 'true'
  6. }</script>
  7. <script src="http://widgets.fbshare.me/files/fbshare.js"></script>
  8. </div>
  9.  
  10. /*
  11. 1.<div style='float:right; aligns the button to the right. set it as left if you want it on the left hand side of the post.
  12. 2.the above code was pasted above the <data:post.body/> tag. So if you want the retweet button in the bottom section of your post. Place the code below <data:post.body/>
  13.  
  14. 3.size - The size of the button: 'large' OR 'small' (if not specified, defaults to 'large')
  15. 4.url - The URL of the page you want shared on Facebook (if not specified, defaults to that of the page on which the button is displayed)
  16. 5.title - The name of the page you want shared on Facebook (if not specified, defaults to that of the page on which the button is displayed)
  17. 6.google_analytics - If no awesm_api_key specified, sets whether fbshare.me links have Google Analytics parameters added: true OR false (if not specified, defaults to false)
  18. 7.awesm_api_key - For existing awe.sm customers only (if not specified, will use fbshare.me links)
  19.  
  20. */

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.