Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6019263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:23:44+00:00 2026-05-23T03:23:44+00:00

I have a table list of products generated in PHP. The list contains: title

  • 0

I have a table list of products generated in PHP.

The list contains: title | description | price | like_button

the Like button that I use is:

<iframe src="http://www.facebook.com/plugins/like.php?app_id=103750869718158&amp;href= echo "http://'.$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"].'; &amp;send=false&amp;layout=button_count&amp;width=100&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe>

The list gets generated with, lets say 20 products and respectively 20 likes.

The problem occurs when I click on one Like button, all other like buttons get activated and I would like them to be independent one from each other.

here is an idea

All help or ideas are appreciated,
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:23:45+00:00Added an answer on May 23, 2026 at 3:23 am

    Take a look at the page you’re using as an example (not a marketing video of the page, but the actual page itself):

    <fb:like width="90" layout="button_count" href="http://r.levi.com/product/index.jsp?productId=3672714&amp;r=&amp;c=3" font="arial" ref="FamilyLike:3515596"></fb:like>
    

    I’m not up to date on Facebook’s FBML (XFBML?) markup syntax, but it looks like the key here is the href which is unique per product. That ref attribute also appears to be useful.

    According to Facebook:

    • href – the URL to like. The XFBML version defaults to the current page.
    • ref – a label for tracking referrals; must be less than 50 characters and can contain alphanumeric characters and some punctuation (currently +/=-.:_). The ref attribute causes two parameters to be added to the referrer URL when a user clicks a link from a stream story about a Like action:
      • fb_ref – the ref parameter
      • fb_source – the stream type (‘home’, ‘profile’, ‘search’, ‘other’) in which the click occurred and the story type (‘oneline’ or ‘multiline’), concatenated with an underscore.

    I think the biggest difference to notice here is that the desired functionality is implemented using the Facebook markup and JavaScript SDK, as opposed to the simpler iframe method. The additional functionality requires a bit of additional development work, though not much.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table which contains a list of products for a company. They
I have a mysql table (table-A) that contains a list of unique product ids.
I have a table called products, which contains two rows (plus others):price and mfr.
I have a table which contains a list of Surveys (PK is ID) CREATE
We have a table value function that returns a list of people you may
I have a table which contains a list of categories and and another table
I have a query that JOINs some tables to get a list of products
I have a database table with a list of products (clothing). The products belong
I'm looking for a best practice solution.... I have table that holds products called
So say I have a products table with a list of products, and one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.