{"id":1271,"date":"2023-10-27T09:37:53","date_gmt":"2023-10-27T09:37:53","guid":{"rendered":"https:\/\/wpshortcode.org\/?p=1271"},"modified":"2023-10-27T09:37:54","modified_gmt":"2023-10-27T09:37:54","slug":"simple-facebook-plugin","status":"publish","type":"post","link":"https:\/\/wpshortcode.org\/simple-facebook-plugin\/","title":{"rendered":"Simple Like Page Shortcode"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Below, you&#8217;ll find a detailed guide on how to add the <strong>Simple Like Page Shortcode<\/strong> to your WordPress website, including its <strong>parameters<\/strong>, <strong>examples<\/strong>, and <strong>PHP function code<\/strong>. Additionally, we&#8217;ll assist you with common issues that might cause the Simple Like Page  Plugin shortcode not to show or not to work correctly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before starting, here is an overview of the Simple Like Page  Plugin and the shortcodes it provides:<\/p>\n\n\n<p>    <div class=\"plugin-info-box\">\n        <div class=\"top-main\">\n            <!-- SVG Image -->\n            <div class=\"plugin-image\">\n                <img decoding=\"async\" src=\"https:\/\/ps.w.org\/simple-facebook-plugin\/assets\/icon-128x128.png?rev=2083359\" alt=\"Plugin Icon\" \/>\n            <\/div>\n            \n            <div class=\"plugin-descriptive-part\">\n                <!-- Plugin Name with Link -->\n\n                    <a class=\"plugin-title\" href=\"https:\/\/wordpress.org\/plugins\/simple-facebook-plugin\" target=\"_blank\" rel=\"noopener\">\n                        Simple Like Page Plugin                    <\/a>\n\n\n                <!-- Plugin Description -->\n                <p class=\"plugin-description\">\n                    &quot;Simple Like Page Plugin is a user-friendly WordPress tool that lets you effortlessly integrate Facebook functions into your website. Boost your social media presence with this easy-to-use plugin.&quot;                <\/p>\n            <\/div>\n        <\/div>\n\n        <!-- Rating and Additional Info -->\n        <div class=\"plugin-meta\">\n            <span class=\"plugin-rating\">\n                <span class='stars'>\u2605\u2605\u2605\u2605\u2729<\/span> (23)\n            <\/span>\n            <span class=\"plugin-active-installs\">\n                <strong>Active Installs<\/strong>: 20000+\n            <\/span>\n            <span class=\"plugin-tested\">\n                <strong>Tested with<\/strong>: 5.2.19            <\/span>\n            <span class=\"plugin-php-version\">\n                <strong>PHP Version<\/strong>: false            <\/span>\n        <\/div>\n\n        <!-- List of Included Shortcodes -->\n        <div class=\"plugin-shortcodes\">\n            <strong>Included Shortcodes:<\/strong>\n            <ul>\n                <li>[sfp-page-plugin]<\/li>            <\/ul>\n        <\/div>\n    <\/div>\n    <\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Simple Like Page  [sfp-page-plugin] Shortcode<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Simple Facebook Plugin shortcode &#8216;sfp-page-plugin&#8217; allows users to customize and embed a Facebook page plugin on their website. It provides options to select the URL, adjust dimensions, and toggle visibility of various elements.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode<\/strong>: <code>[sfp-page-plugin]<\/code><\/p>\n\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Parameters<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Here is a list of all possible sfp-page-plugin shortcode parameters and attributes:<\/p>\n\n\n<ul>\n<li><code>url<\/code> &#8211; The web address of the Facebook page you want to display.<\/li>\n<li><code>width<\/code> &#8211; The width of the Facebook Page plugin on your site.<\/li>\n<li><code>height<\/code> &#8211; The height of the Facebook Page plugin on your site.<\/li>\n<li><code>hide_cover<\/code> &#8211; If set to true, it hides the cover photo of the Facebook page.<\/li>\n<li><code>show_facepile<\/code> &#8211; If set to true, it displays the profile photos of people who like the page.<\/li>\n<li><code>small_header<\/code> &#8211; If set to true, it uses a smaller version of the page header.<\/li>\n<li><code>timeline<\/code> &#8211; If set to true, it displays the posts from the Facebook page&#8217;s timeline.<\/li>\n<li><code>events<\/code> &#8211; If set to true, it displays the upcoming events of the Facebook page.<\/li>\n<li><code>messages<\/code> &#8211; If set to true, it allows people to send messages to the Facebook page from your site.<\/li>\n<li><code>locale<\/code> &#8211; Sets the language of the Facebook page plugin.<\/li>\n<\/ul>\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Examples and Usage<\/h3>\n\n\n<p><strong>Basic example<\/strong> &#8211; Display a Facebook page plugin with default options.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[sfp-page-plugin \/]<\/code><\/pre>\n\n\n<p><strong>Advanced examples<\/strong><\/p>\n<p>Display a Facebook page plugin with a specific URL and width.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[sfp-page-plugin url=\"http:\/\/www.facebook.com\/your_page_name\" width=\"500\" \/]<\/code><\/pre>\n\n\n<p>Display a Facebook page plugin with a specific URL, width, height, and hide the cover photo.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[sfp-page-plugin url=\"http:\/\/www.facebook.com\/your_page_name\" width=\"500\" height=\"800\" hide_cover=\"true\" \/]<\/code><\/pre>\n\n\n<p>Display a Facebook page plugin with a specific URL, width, height, hide the cover photo, and show the facepile.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[sfp-page-plugin url=\"http:\/\/www.facebook.com\/your_page_name\" width=\"500\" height=\"800\" hide_cover=\"true\" show_facepile=\"true\" \/]<\/code><\/pre>\n\n\n<p>Display a Facebook page plugin with a specific URL, width, height, hide the cover photo, show the facepile, and use a small header.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[sfp-page-plugin url=\"http:\/\/www.facebook.com\/your_page_name\" width=\"500\" height=\"800\" hide_cover=\"true\" show_facepile=\"true\" small_header=\"true\" \/]<\/code><\/pre>\n\n\n<p>Display a Facebook page plugin with all available options.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[sfp-page-plugin url=\"http:\/\/www.facebook.com\/your_page_name\" width=\"500\" height=\"800\" hide_cover=\"true\" show_facepile=\"true\" small_header=\"true\" timeline=\"true\" events=\"true\" messages=\"true\" locale=\"en_US\" \/]<\/code><\/pre>\n\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">PHP Function Code<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In case you have difficulties debugging what causing issues with <code>[sfp-page-plugin]<\/code> shortcode, check below the related PHP functions code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode line<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">add_shortcode('sfp-page-plugin', 'sfp_page_plugin_shortcode');<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode PHP function<\/strong>:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; light: false; title: ; toolbar: true; notranslate\" title=\"\">\nfunction sfp_page_plugin_shortcode ( $instance ) {\n\n\tglobal $sfplugin;\n\n\t$instance = ( !$instance ) ? array() : $instance;\n\n\t\/\/ Add-ons hook\n\t$instance = apply_filters( &quot;sfp_before_page_plugin&quot;, $instance, $sfplugin );\n\n\textract( array_merge( array(\n\t\t\/\/ default options\n\t\t&#039;url&#039;\t\t\t=&gt; &#039;http:\/\/www.facebook.com\/topdevs.net&#039;,\n\t\t&#039;width&#039;\t\t\t=&gt; &#039;&#039;,\n\t\t&#039;height&#039;\t\t=&gt; &#039;&#039;,\n\t\t&#039;hide_cover&#039;\t=&gt; false,\n\t\t&#039;show_facepile&#039;\t=&gt; true,\n\t\t&#039;small_header&#039;\t=&gt; false,\n\t\t&#039;timeline&#039;\t\t=&gt; false,\n\t\t&#039;events&#039;\t\t=&gt; false,\n\t\t&#039;messages&#039;\t\t=&gt; false,\n\t\t&#039;locale&#039;\t\t=&gt; &#039;en_US&#039;\n\t), $instance ) );\n\n\tob_start();\n\n\t\/\/ include Page Plugin view\n\tinclude( $sfplugin-&gt;pluginPath . &#039;views\/view-page-plugin.php&#039; );\n\n\treturn ob_get_clean();\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>Code file location<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">simple-facebook-plugin\/simple-facebook-plugin\/simple-facebook-plugin.php<\/code><\/pre>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now that you&#8217;ve learned how to embed the <strong>Simple Like Page  Plugin shortcode<\/strong>, understood the parameters, and seen code examples, it&#8217;s easy to use and debug any issue that might cause it to &#8216;not work&#8217;. If you still have difficulties with it, don&#8217;t hesitate to leave a comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Below, you&#8217;ll find a detailed guide on how to add the Simple Like Page Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we&#8217;ll assist you with common issues that might cause the Simple Like Page Plugin shortcode not to show or not to work correctly. Before starting, here is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"name":"Simple Like Page Plugin","slug":"","version":"1.5.1","author":"<a href=\"http:\/\/codecanyon.net\/user\/topdevs\/portfolio?ref=topdevs\">topdevs.net<\/a>","icons":"https:\/\/ps.w.org\/simple-facebook-plugin\/assets\/icon-128x128.png?rev=2083359","plugin_tags":"{\"facebook\":\"facebook\",\"fb\":\"fb\",\"fb-like\":\"fb like\",\"like-box\":\"like box\",\"social\":\"social\"}","author_profile":"https:\/\/profiles.wordpress.org\/fornyhucker\/","requires":"2.8","tested":"5.2.19","requires_php":"false","rating":88,"num_ratings":23,"active_installs":20000,"downloaded":295416,"last_updated":"2019-05-08 10:12am GMT","added":"2011-09-09","homepage":"http:\/\/plugins.topdevs.net\/simple-like-page-plugin","short_description":"Lets you easily embed and promote any public Facebook Page on your WordPress website. Your visitors can like, share, see Page events or even sand a me &hellip;","description":"\"Simple Like Page Plugin is a user-friendly WordPress tool that lets you effortlessly integrate Facebook functions into your website. Boost your social media presence with this easy-to-use plugin.\"","shortcodes":"[\"sfp-page-plugin\"]","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1271","post","type-post","status-publish","format-standard","hentry","category-plugins"],"_links":{"self":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/1271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/comments?post=1271"}],"version-history":[{"count":1,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/1271\/revisions"}],"predecessor-version":[{"id":1543,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/1271\/revisions\/1543"}],"wp:attachment":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/media?parent=1271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/categories?post=1271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/tags?post=1271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}