How to Share on Facebook and Twitter

Sharing on Facebook and Twitter with sharer.php is a tool all developers should know. Since most of our clients are going social this is something you should learn.

As the world becomes more social developers are required to know how to share links on Facebook, twitter, and other social networks. I have written this to show developers how to share links on their website with the Facebook and twitter sharer.

Examples: 

https://www.facebook.com/sharer/sharer.php?u=http://thecodebeast.com 

http://twitter.com/share?text=CodeBeast - Free Code Snippets and Free Code Tutorials&url=http://thecodebeast.com