As a follow up to Render-like-button-after-ajax-call, I'm having an issue with rendering multiple "like" buttons on a webpage.
I want to get the ids of all posts from Facebook, via JSON and JQuery, and then display boxes with like buttons for each... The problem is that simply calling "FB.XFBML.parse();" so I do something like this:
function displayPost(postJson)
{
$("#myelement").append(postJson.text+"<somehtmltags for like button>"+postJsonId);
FB.XFBML.parse();
}
regular ajax call
{
...
displayPost(postJson);
...
}
Edit: Now, this bit of code does ensure that future ajax calls display the like buttons, but the like buttons don't display the actual like count (how many people liked the post)... Any ideas ?