Avatar of mugsinc
mugsinc
Flag for Sri Lanka asked on

Multiple Share

how can i have multiple share buttons or like buttons on the same page
PHPJavaScript

Avatar of undefined
Last Comment
mugsinc

8/22/2022 - Mon
guvera

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
guvera

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
mugsinc

ASKER
Fast
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23