Link to home
Start Free TrialLog in
Avatar of mugsinc
mugsincFlag for Sri Lanka

asked on

Multiple Share

how can i have multiple share buttons or like buttons on the same page
Avatar of guvera
guvera
Flag of India image

Hi,
 
  Here is one of the link for overview what your are expecting http://fblikeme.com/index.php

I am not familiar in php. But i can give an idea about this interesting one like facebook. This is the details of above link for like button in single page.

On the fblike.me index.php page, each instance of a like button corresponds to a link.  The layout you see is:  Like button, number of likes, URL.

If you look at the code behind it you'll see each instance of the Like button actually refers to the target page of the URL and NOT the page that it's on (index.php).  The relevant Meta data is then placed on the target page.

<fb:like layout="button_count" class="like_button" href="http://Fblikeme.com//like.php?id=57"></fb:like>
<a class="like_a" href="like.php?id=57"> C.L.A.S.S = Come late and start sleeping tongue</a>

See that the HREF of the fb:like is the same as the HREF on the anchor?  If you go to the target page you'll see the relevant meta data on there.

Hope that helps
ASKER CERTIFIED SOLUTION
Avatar of guvera
guvera
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mugsinc

ASKER

Fast