I have a function call back on auth.login and would like to reparse my fb:like elements. Other actions are performed during the auth.login callback, and they execute just fine, but the .parse does not! I try executing FB.XFBML.parse(); in the console and it shows undefined and then after three seconds a console message saying 2 XFBML tags failed to render in 30000ms.
Any ideas?
For anyone who happens to run across this question running into the same problem I did…
Basically what I wanted to do was after a user logged into my website, I wanted to refresh the ‘Like’ button iFrame to reflect such.
FB.XFBML.parse();was only resulting in errors…so I thought “Maybe I’ll just refresh the iFrame?” and since I am using jQuery as my framework – I figured I’d stick with it.So, here’s what I ended up doing:
Hopefully this will help someone else!