更新时间:2023-12-05 08:55:34
首次尝试
不确定这是否有很大帮助,但这是有关Ajax + FBML的文章: http://wiki.developers.facebook.com/index.php/FBJS#Creating_FBML_Elements
Not sure if this helps a lot, but here's an article on Ajax + FBML: http://wiki.developers.facebook.com/index.php/FBJS#Creating_FBML_Elements
特别是,也许您可以使用setInnerFBML()方法
In particular, perhaps you can use the setInnerFBML() method
关注
所以我认为init函数可以解析fbml.因此,显而易见的问题是,如果在init之后插入fbml,如何获取Facebook的javascript库来重新解析fbml(或者只是解析新的fbml).
So I think the init function parses the fbml. So the obvious question is how do you get facebook's javascript library to re-parse the fbml (or just parse the new fbml) if you insert fbml after init.
该线程可能会有所帮助: http://forum.developers.facebook.com/viewtopic.php?id= 22245
It looks like this thread may help: http://forum.developers.facebook.com/viewtopic.php?id=22245
这似乎是相关的代码,尽管论坛上有更多上下文:
Here's what appears to be the relevant code although there is more context at the forum:
if ( FB.XFBML.Host.parseDomTree )
setTimeout( FB.XFBML.Host.parseDomTree, 0 );