{"id":9042,"date":"2021-12-07T09:14:24","date_gmt":"2021-12-07T08:14:24","guid":{"rendered":"https:\/\/www.myagileprivacy.com\/how-to-install-facebook-social-plugins-in-compliance-with-gdpr\/"},"modified":"2026-01-02T15:09:13","modified_gmt":"2026-01-02T14:09:13","slug":"how-to-install-facebook-social-plugins-in-compliance-with-gdpr","status":"publish","type":"post","link":"https:\/\/www.myagileprivacy.com\/en\/how-to-install-facebook-social-plugins-in-compliance-with-gdpr\/","title":{"rendered":"How to Install Facebook Social Plugins in Compliance with GDPR"},"content":{"rendered":"<p>With Facebook's Social Plugins, you can seamlessly integrate specific sections of your website with the social network.<br \/>\nFor example, you can enable \"Facebook Comments\" on your articles, allowing users to comment without creating new accounts, be tracked on Facebook, and even share comments on their timelines.<br \/>\nEnsuring GDPR compliance and proper cookie management is crucial in this context. Here\u2019s how to install GDPR-compliant Facebook Social Plugins using <strong>My Agile Privacy<sup>\u00ae<\/sup>'s WordPress plugin<\/strong>.<\/p>\n<p><strong>Note:<\/strong> This guide uses Facebook Comments as an example, but the procedure applies to all Facebook Social Plugins listed <a href=\"https:\/\/developers.facebook.com\/docs\/plugins\/?locale=it_IT\" target=\"_blank\" rel=\"nofollow noopener\">here<\/a>.<\/p>\n<h2>Part 1 \u2013 Locating the Social Plugin Code<\/h2>\n<p>First, find the code for your chosen Facebook Social Plugin. Social Plugins usually consist of two parts: a common installation segment and another segment specific to the plugin you\u2019re implementing. For Facebook Comments, for instance, the code might look like this:<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-4658\" src=\"https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/social-plugin-1.png\" alt=\"\" width=\"2560\" height=\"564\" srcset=\"https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/social-plugin-1.png 2560w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/social-plugin-1-300x66.png 300w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/social-plugin-1-1024x226.png 1024w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/social-plugin-1-768x169.png 768w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/social-plugin-1-1536x338.png 1536w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/social-plugin-1-2048x451.png 2048w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><br \/>\nFor GDPR compliance, focus on the first part\u2014the common activation script that loads Facebook functionality on your site.<\/p>\n<h2>Part 2 \u2013 Adding the Facebook Social Plugin Cookie in My Agile Privacy<sup>\u00ae<\/sup><\/h2>\n<p>In your WordPress admin area, go to <em>My Agile Privacy<sup>\u00ae<\/sup> \u2192 Cookie List<\/em> from the left menu.<br \/>\nHere you\u2019ll find a list of cookies imported during plugin installation. All will be in draft status by default\u2014publish only the cookies relevant to your site.<br \/>\n<img decoding=\"async\" class=\"aligncenter size-full wp-image-9467\" src=\"https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/cookielist-en.jpg\" alt=\"\" width=\"1000\" height=\"303\" srcset=\"https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/cookielist-en.jpg 1000w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/cookielist-en-300x91.jpg 300w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/11\/cookielist-en-768x233.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><br \/>\nThis screen includes columns such as:<\/p>\n<ul>\n<li><em>Cookie Name<\/em>: the name of the cookie.<\/li>\n<li><em>Is Necessary<\/em>: whether the cookie is essential for site functionality. If rejecting it breaks the site, it is pre-filled as essential.<\/li>\n<li><em>Auto Update<\/em>: whether the reference text is kept up to date automatically for GDPR compliance.<\/li>\n<li><em>Installation Type<\/em>: the method used to add the cookie. This may change depending on your needs (see the guides for more).<\/li>\n<\/ul>\n<p>To add the cookie for Facebook Social Plugins, locate \"Facebook (Facebook, Inc.) Like Button and Social Widgets\" and click on it.<br \/>\nThe detail page includes pre-filled informational text and two blank code fields. This text appears in your cookie policy and is auto-updated for compliance if \"Allow Automatic Update\" is enabled.<br \/>\nBelow, select \"Installation Type\" (Javascript and Noscript, or Raw). Choose \"Raw Code\" to view the \"raw html code\" field.<\/p>\n<h2>Part 3 \u2013 Entering the Social Plugin Activation Code<\/h2>\n<p>Remember, the Facebook code is split into two parts: the common activation segment (entered once for all plugins) and the display part (specific to each plugin).<br \/>\nPaste the common activation segment into the \"Html Raw Code\" field.<br \/>\n<img decoding=\"async\" class=\"aligncenter size-full wp-image-9495\" src=\"https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/cookie-raw-code2-en.jpg\" alt=\"\" width=\"1000\" height=\"304\" srcset=\"https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/cookie-raw-code2-en.jpg 1000w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/cookie-raw-code2-en-300x91.jpg 300w, https:\/\/www.myagileprivacy.com\/wp-content\/uploads\/2021\/12\/cookie-raw-code2-en-768x233.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><br \/>\nThen, place the display section (unique to each plugin) within your theme wherever you want the plugin to appear.<\/p>\n<p>Always save and publish the cookie by clicking the blue \"Publish\" button in the upper right corner.<\/p>\n<h2>Part 4 \u2013 Verifying Correct Operation<\/h2>\n<p>To verify the correct installation of the Social Plugin, load any page with the display code in place. You'll notice that the plugin remains inactive until explicit user consent for cookies is given.<br \/>\nConsent can be provided by clicking \"I agree\" on the cookie acceptance bar, or by going to \"Customize\" and enabling the cookie.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With Facebook's Social Plugins, you can seamlessly integrate specific sections of your website with the social network. For example, you can enable \"Facebook Comments\" on your articles, allowing users to comment without creating new accounts, be tracked on Facebook, and even share comments on their timelines. Ensuring GDPR compliance and proper cookie management is crucial [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8708,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[33],"tags":[35],"class_list":["post-9042","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cookies","tag-free"],"acf":{"visibilita_box_autore":false,"autore_associato":null,"elenco_faq_articolo":null,"url_esterno":"","titolo":"Facebook Social Plugin"},"_links":{"self":[{"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/posts\/9042","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/comments?post=9042"}],"version-history":[{"count":9,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/posts\/9042\/revisions"}],"predecessor-version":[{"id":15166,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/posts\/9042\/revisions\/15166"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/media\/8708"}],"wp:attachment":[{"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/media?parent=9042"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/categories?post=9042"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/tags?post=9042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}