I am wondering if it is possible to change the action of the Facebook button as an Ajax event.
What I'm trying to do: I show the article when the page was loaded. At the end of the article, I have a button that loads the next article through Ajax. Additionally, I have the following Facebook button:
<fb:like href="http://www.myurl.com" layout="standard" show-faces="true" action="like" id="fblike" />
When I download the next article, I put the new article URL in the “href” attribute using Javascript (which works fine), but when I click on a similar button, the article’s original URL will be posted to facebook, not the new one.
Any ideas?
Many thanks.
chris source
share