Hi,
how can i embed a Facebook like box in an area of my main content. Not as Sidebar widget?
Thankyou for helping!
Hey Luisgasser!
You can use a plugin https://wordpress.org/plugins/facebook-like-box-widget/
or
https://developers.facebook.com/docs/plugins/page-plugin
or
Cheers!
Vinay
Nice, but how do I include:
Step 2: Include the JavaScript SDK on your page once, ideally right after the opening <body> tag.
<div id=”fb-root”></div>
<script>(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/nl_NL/sdk.js#xfbml=1&version=v2.6&appId=1735310986680574”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>
Hi!
Please add following code to Functions.php file in Appearance > Editor
function custom_blog_banner(){
?>
// YOUR CODE GOES HERE :)
<?php
}
add_action('wp_footer', 'custom_blog_banner');
Cheers!
Yigit
Are you sure that code is for Facebook post to appear?
Hey!
It would display Facebook likebox. You can try adding your code into Code block element in your content or text widget in widget areas as well
Regards,
Yigit
I see, senx! And what should I do to display Facebook posts instead of a like box?
Hi!
Please see WordPress section here – https://developers.facebook.com/docs/plugins/embedded-posts
Best regards,
Yigit
Well, I did all that but nothing happens.
Could you have a quick look: http://wptester.nl/sidebar/
(inlog in private content)
In the sidebar please!
Hi!
Code i used did not seem to work. Can you please try using a plugin such as this one – https://wordpress.org/plugins/recent-facebook-posts/
Cheers!
Yigit
Yep, works fine now! Thanks Yigit.