-
AuthorPosts
-
April 8, 2016 at 11:19 am #610166
Hi,
how can i embed a Facebook like box in an area of my main content. Not as Sidebar widget?
Thankyou for helping!
April 8, 2016 at 11:35 am #610172Hey 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!
VinayApril 14, 2016 at 1:40 pm #613858Nice, 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>April 14, 2016 at 1:44 pm #613863Hi!
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!
YigitApril 14, 2016 at 1:56 pm #613875Are you sure that code is for Facebook post to appear?
April 14, 2016 at 2:00 pm #613879Hey!
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,
YigitApril 14, 2016 at 2:08 pm #613893I see, senx! And what should I do to display Facebook posts instead of a like box?
April 14, 2016 at 2:10 pm #613895Hi!
Please see WordPress section here – https://developers.facebook.com/docs/plugins/embedded-posts
Best regards,
YigitApril 14, 2016 at 2:26 pm #613914Well, I did all that but nothing happens.
Could you have a quick look: http://wptester.nl/sidebar/
(inlog in private content)April 14, 2016 at 2:34 pm #613926April 14, 2016 at 3:31 pm #614011In the sidebar please!
April 14, 2016 at 4:27 pm #614079Hi!
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!
YigitApril 14, 2016 at 4:35 pm #614090Yep, works fine now! Thanks Yigit.
-
AuthorPosts
- The topic ‘Facebook like box’ is closed to new replies.
