facebook social plug-in not showing up when added dynamically

后端 未结 1 570
一生所求
一生所求 2020-11-22 11:33

I am adding facebook social plug in to a webpage

when I manually add :

相关标签:
1条回答
  • 2020-11-22 12:00

    The JS SDK goes through your document once when it is initialized, to look for such elements to parse into social plugins. If you want it to also parse content that you add to the document later, you need to call FB.XFBML.parse().

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

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