Monday, December 3, 2012

create facebook share to custom webpages?


There are mailly two steps to create share button in our site. They are
http://www.facebook.com/sharer.php?u=<url to share>
&t=<title of content>link or image</a>
  1. url to share – the site that you want to share to Facebook
  2. title of content – the name of what you are sharing
If I wanted to share my Facebook fan page with a custom image, I would use the following code.
<a href="http://www.facebook.com/sharer.php?u=http://facebook.com/
Anti.Social.Development&t=(Anti) Social Development" target="_blank">
<img src="http://www.kimwoodbridge.com/asdface.jpg" /></a>

You also check the following url:
http://www.kimwoodbridge.com/how-to-create-your-one-facebook-share-url/

No comments:

Post a Comment