We want to integrate the facebook login button plugin, facebook like button, facebook comments with in one page for different purpose.
But we found that they all using the same div id #fb-root. As we know, one div id should be used only time for one page…
How to solve it?
You only need one fb-root. The like button, login, etc will generate where you put the “like”, “login”, etc tags.
“Include the JavaScript SDK on your page once, ideally right after the opening tag.”
This contains fb-root
Then, Place the code for your plugin wherever you want the plugin to appear on your page.