I wrote a page with a news.reads
Facebook action. After the user has been on a specific article in excess of 10 seconds it will push a news.reads
action to Facebook and then show that action in the updated Facebook facepile plugin.
Till a few months ago, this worked flawlessly - the action got pushed and facepile got refreshed using FB.XFBML.parse();
. Now I've noticed that facepile is not updating dynamically via this JS call, but is updated when you reload the whole page.
Up till now I've tried the HTML5 and XFBML approach of implementing the facepile plugin and tried passing every possible DOM node to FB.XFBML.parse();
, but nothing seems to work...
Do any of you guys have the same problem and if so, is it a known Facebook bug (and they just don't give a **** about it)?
[EDIT]
Well the answer to this is:
jQuery(document).ready(function($) {
var facepile = $('.fb-facepile'),
facepile_new = facepile
.clone()
.empty()
.attr('data-height', 62) // optional
.removeAttr('fb-xfbml-state');
facepile
.after(facepile_new)
.remove();
FB.XFBML.parse();
});