How to force Facebook JS-SDK to render dynamically added widgets?

前端 未结 1 1035
南旧
南旧 2020-12-09 20:01

The content within the app is being updated using XHR. This involves changing the URL of the comment box:

相关标签:
1条回答
  • 2020-12-09 20:25

    Call the JavaScript SDK's FB.XFBML.parse(); function after you dynamically insert the fb-comments div.

    See: http://developers.facebook.com/docs/reference/javascript/FB.XFBML.parse/

    0 讨论(0)
提交回复
热议问题