Susmitha Torthikar
Susmitha Torthikar

Reputation: 11

Facebook like button on a product page

My requirement is to integrate my client webpage and facebook using the Flike button. I have an html page which is used for all the products. Based on the product code selected, the content in the page changes. The URL format is something like this - in the browser it shows : http://xyz.com/product.aspx, in the view source, in the action attribute of the form tag : ../../product.aspx?prdcode=123&catcode=3453

Now, my requirement is to place an flike button on this page. I have tried doing it in several ways... but the issue is:

If I click on flike button on one page.. the button is disabled for every other product. Not sure what all needs to be included in to get this functionality right.

Upvotes: 1

Views: 1595

Answers (1)

Igy
Igy

Reputation: 43816

For a product listing page you'd need to have multiple like buttons, each pointing at a URL which represents an individual product - each of those pages needs the appropriate open graph meta tags, include the JS SDK once on your listing page, and have multiple <fb:like tags pointing at the individual product URLs

If the page content is dynamic, I think you can do the same, but you'll need to remove and add the like button as the content changes

Upvotes: 3

Related Questions