Login Facebook Button

Hello, I want to create a button with Facebook and I created the APP but they ask to add a code in the body, however, I do not know where it is the body in single.php or in another site?

Can you help me?

The following snippet of code will give the basic version of the SDK where the options are set to their most common defaults. You should insert it directly after the opening <body> tag on each page you want to load it:

<script>
window.fbAsyncInit = function() {
FB.init({
appId : ‘445769199091797’,
cookie : true,
xfbml : true,
version : ‘v2.8’
});
FB.AppEvents.logPageView();
};

(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = “//connect.facebook.net/en_US/sdk.js”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));
</script>

Hi,

First of first, please make sure you modify the file in a child theme.
Then you can add the script in above in header.php file after this line:
<body <?php body_class(); ?>>

Regards,
Awan