Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have added share buttons to the articles on this page:

I have used the code generated here. As you can see there are multiple articles on the same page, I have done it like that because the articles will be not too long. So I have to use this structure.

The problem: when I press "Like" on one article, nothing happens, any help?

share|improve this question
It's coded incorrectly, you need to be using the URL of each article in the foreach loop so that each set of sharing widgets shares the appropriate URL (currently, 1 share on FB will replicate across all instances on the same page). –  zigojacko Mar 24 at 14:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.