I need to add facebook twitter and google +1 button to a dynamically generated webpage. I explain my usage example:
A user comes to my web portal, which is a web portal based on java / j2ee, and adds some content (for example, name, address, company, name, place, as well as its photo.)
Then I create a page, such as a facebook profile page, www.mydomain.com/user_name.
So my goal is to add its contents along with the address and picture to his / her facebook wall using the facebook share button.
I looked through a few codes that I have, one simple example:
<a href="javascript:window.location=%22http://www.facebook.com/sharer.php?u=%22+encodeURIComponent(document.location)+%22&t=%22+encodeURIComponent(document.title)" title="Share on Facebook..."><img src="/path/to/your/image/" width="12" height="12" alt="alt" /></a>
Can I improve the same code to fulfill my needs? I also need to scroll through the same content. But I can not do it dynamically. How can I do it? Any link or tutorials or sample code would be helpful.
source share