Using Facebook SDK and adding a Like button to index.html

We are using WebGL (Unity 5.5) as one of the platforms for our game, and we integrated Facebook SDK that is initialized when the game start.

We want to add a “Like” button to the top of our index.html page, using Facebook’s social plugins framework (Like Button - Social Plugins - Documentation - Meta for Developers).

The problem we are facing is that in order to add the like button we must also initialize the JS SDK on our index.html page, and if we do that the Unity SDK does not seem to work.

Is there any way we can achieve that?

You would need to make your own template in place of default index.html and control the flow by yourself