So, i'm trying to use Facebook Graph API. My problem is that for this case i need to use SDK Facebook, and i can set to work on ReactJs. Facebook docs tells me to use this code on HTML/JS (And it work):
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'your-app-id',
autoLogAppEvents : true,
xfbml : true,
version : 'v14.0'
});
};
</script>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js"></script>
How can i make it work on ReactJs?