{"id":84193,"date":"2018-02-28T03:58:33","date_gmt":"2018-02-28T08:58:33","guid":{"rendered":"https:\/\/www.templatemonster.com\/help\/?p=84193"},"modified":"2018-02-28T03:59:17","modified_gmt":"2018-02-28T08:59:17","slug":"how-to-display-facebook-events-on-your-wordpress-site","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/how-to-display-facebook-events-on-your-wordpress-site.html","title":{"rendered":"How to display Facebook events on your WordPress site"},"content":{"rendered":"<p>We are going to show you how to add Facebook Events to your WordPress website. This plugin allows you to display Facebook page events on the site.<\/p>\r\n<h3 class=\"custom\">Getting Facebook page code<\/h3>\r\n<p>First, you need to set up your Facebook events box and get embedded code. To do that, visit the <a href=\"https:\/\/developers.facebook.com\/docs\/plugins\/page-plugin\" target=\"_blank\" rel=\"nofollow\">Page Plugin<\/a> on the Facebook developers website. Scroll the page down to see:<\/p>\r\n\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_1.jpg\" alt=\"\" width=\"833\" height=\"742\" class=\"alignnone size-full wp-image-84194\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_1.jpg 833w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_1-150x134.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_1-300x267.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_1-768x684.jpg 768w\" sizes=\"(max-width: 833px) 100vw, 833px\" \/><\/a>\r\n<p>Here you can specify your Facebook page settings:<\/p>\r\n<ol>\r\n<li>\r\n  <p>Enter your page URL in the <strong>Facebook Page URL<\/strong> field.<\/p><\/li>\r\n<li>\r\n  <p><strong>Width<\/strong> and <strong>Height<\/strong> fields allow you to change your Facebook events box size.<\/p><\/li>\r\n  <li>\r\n    <p>Don&#8217;t forget to enter <strong>events<\/strong> in the <strong>Tabs<\/strong> field! That is a required setting.<\/p><\/li>\r\n<li>\r\n  <p>At the bottom of this section, you can see Facebook Events preview. That is the way box will look like on your site. You can change its appearance using additional settings: <\/p>\r\n  <ul>\r\n  <li><p>Check <strong>Use Small Header<\/strong> to be able to use a small version of the page header.<\/p><\/li>\r\n  <li><p>Click <strong>Hide Cover Photo<\/strong> to hide the cover photo in the header.<\/p><\/li>\r\n  <li>\r\n    <p>The plugin will try to fit inside the container if you enable <strong>Adapt to plugin container width<\/strong> option.<\/p><\/li>\r\n  <li>\r\n    <p>To show profiles photos when friends like your post click on the <strong>Show Friend&#8217;s Faces<\/strong> option.<\/p><\/li>\r\n  <\/ul><\/li>\r\n  <li><p>Click on the <strong>Get Code<\/strong> button to see a pop-up with two boxes of the code.<\/p>\r\n\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_2.jpg\" alt=\"\" width=\"721\" height=\"493\" class=\"alignnone size-full wp-image-84195\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_2.jpg 721w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_2-150x103.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_2-300x205.jpg 300w\" sizes=\"(max-width: 721px) 100vw, 721px\" \/><\/a>\r\n  <p>Leave that pop-up opened. You will need that code on the next step.<\/p><\/li>\r\n<\/ol>\r\n\r\n<h3 class=\"custom\">Embedding Facebook Events on the site<\/h3>\r\n<p>You have the code and can proceed to the next step now. This stage includes two simple steps:<\/p>\r\n<ol>\r\n<li><p><strong>JavaScript SDK code embedding<\/strong>.<\/p>\r\n<ul>\r\n<li><p>Login into your WordPress back-end and navigate to <strong>Appearance<\/strong> > <strong>Editor<\/strong> section.<\/p><\/li>\r\n<li><p>Select <strong>header.php<\/strong> file from the right-side files list.<\/p><\/li>\r\n<li>\r\n  <p>Search for the <strong>&lt;body&gt;<\/strong> tag. Paste JavaScript SDK code (you can find it in the pop-up window on the previous step) after that tag:<\/p>\r\n\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_3.jpg\" alt=\"\" width=\"1024\" height=\"623\" class=\"alignnone size-full wp-image-84196\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_3.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_3-150x91.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_3-300x183.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_3-768x467.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a>\r\n  <\/li>\r\n  <li><p>Click on the <strong>Update file<\/strong> button and proceed to the next step.<\/p><\/li>\r\n<\/ul><\/li>\r\n<li><p>Managing plugin visibility. You can paste the 2nd part of the code to any page, post or widget. We will show you how to add it to the Text widgets with Facebook Events box:<\/p>\r\n<ul>\r\n<li><p>Open <strong>Appearance<\/strong> > <strong>Widgets<\/strong> page in your WordPress backend.<\/p><\/li>\r\n<li><p>Drop Text widget to the position you want Facebook Plugin to appear at.<\/p><\/li>\r\n<li><p>Enter the code to the widget content. Make sure you&#8217;re editing the widget in a <strong>Text<\/strong> mode.<\/p>\r\n\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_4.jpg\" alt=\"\" width=\"1024\" height=\"777\" class=\"alignnone size-full wp-image-84197\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_4.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_4-150x114.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_4-300x228.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_4-768x583.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a>\t\r\n\t<\/li>\r\n<li><p>That is it! Save the change and visit your site to see Facebook Plugin.<\/p>\r\n\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_5.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_5.jpg\" alt=\"\" width=\"1024\" height=\"692\" class=\"alignnone size-full wp-image-84198\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_5.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_5-150x101.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_5-300x203.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/02\/How_to_display_Facebook_events_on_your_WordPress_site_5-768x519.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a>\t\r\n\t<\/li>\r\n<\/ul><\/li>\r\n<\/ol>\r\n<p>Thank you for reading this tutorial! More instructions are coming soon.<\/p>\r\n<p>If you&#8217;re searching for more professional solutions to build a website, take a look at a variety of premium <a href=\"https:\/\/www.templatemonster.com\/wordpress-themes.php\">WordPress themes<\/a>!<\/p>","protected":false},"excerpt":{"rendered":"<p>We are going to show you how to add Facebook Events to your WordPress website. This plugin allows you to display Facebook page events on the site.<\/p>\n","protected":false},"author":55,"featured_media":84199,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2017,728],"tags":[1515,780],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/84193"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=84193"}],"version-history":[{"count":5,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/84193\/revisions"}],"predecessor-version":[{"id":84247,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/84193\/revisions\/84247"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/84199"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=84193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=84193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=84193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}