I have the basic FB.init code for the Facebook API first thing in the body.
<script type='text/javascript'>
window.fbAsyncInit = function() {
FB.init({
appId : '175503852952133',
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>
I also have an embedded like button and facebook video on the page. Whenever the page loads everything is displayed as it should, but once the page has been refreshed (either through the refresh button or F5) the embedded like and video do not show up. As if the FB.init has not been ran. Reloading the site with Ctrl + F5 fixes it, but it's not the solution I need.