<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>Adding Facebook SDK to the javascript custom section &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/feed/</link>
		<description></description>
		<lastBuildDate>Wed, 22 Oct 2025 06:37:54 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/#post-238231</guid>
					<title><![CDATA[Adding Facebook SDK to the javascript custom section]]></title>
					<link>https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/#post-238231</link>
					<pubDate>Mon, 30 Mar 2015 15:36:23 +0000</pubDate>
					<dc:creator>shea c</dc:creator>

					<description>
						<![CDATA[
						<p>Im trying to use the new facebook page thing they are implementing instead of the basic facebook like box.</p>
<p>To make it work, I have been instructed to add the javascript SDK to the page preferably after the head section. I have tried adding it to the custom Java section in the customizer but I am having no luck, can you please advise how to do this correctly. </p>
<p>this is the java section</p>
<p>&lt;div id=&#8221;fb-root&#8221;&gt;&lt;/div&gt;<br />
&lt;script&gt;(function(d, s, id) {<br />
  var js, fjs = d.getElementsByTagName(s)[0];<br />
  if (d.getElementById(id)) return;<br />
  js = d.createElement(s); js.id = id;<br />
  js.src = &#8220;//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;appId=&#8221;ID&#8221;&amp;version=v2.3&#8243;;<br />
  fjs.parentNode.insertBefore(js, fjs);<br />
}(document, &#8216;script&#8217;, &#8216;facebook-jssdk&#8217;));&lt;/script&gt;</p>
<p>and then the code added to make the box appear is</p>
<p>&lt;div class=&#8221;fb-page&#8221; data-href=&#8221;<a href="https://www.facebook.com/jackscrabshack&#038;#8221" rel="nofollow">https://www.facebook.com/jackscrabshack&#038;#8221</a>; data-hide-cover=&#8221;false&#8221; data-show-facepile=&#8221;true&#8221; data-show-posts=&#8221;true&#8221;&gt;&lt;/div&gt;</p>
<p>this does not seem to be working, im also going to provide you with a link to the new page they are using.</p>
<p>I used to always use the facebook like box as a simple way to put the facebook feed on a site with the like button etc, it was an iframe. But it looks like they are killing support for this and making us switch to this new facebook page plugin, its not an actual plug in for wordpress.</p>
<p>Im sorry if this is confusing, im just trying to figure out how to word my question correctly.</p>
<p>Here is the link to the new thing they are doing</p>
<p><a href="https://developers.facebook.com/docs/plugins/like-box-for-pages" rel="nofollow">https://developers.facebook.com/docs/plugins/like-box-for-pages</a></p>
<p>Please let me know what you think, if my question is even understandable&#8230;</p>
<p>🙂</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/#post-238383</guid>
					<title><![CDATA[Reply To: Adding Facebook SDK to the javascript custom section]]></title>
					<link>https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/#post-238383</link>
					<pubDate>Mon, 30 Mar 2015 19:33:36 +0000</pubDate>
					<dc:creator>Prasant Rai</dc:creator>

					<description>
						<![CDATA[
						<p>Hello Shea,</p>
<p>Thanks for writing in. </p>
<p>Before you could implement Facebook like box on website, you need to create a Facebook app. Kindly login to the developer section of your Facebook account and create a web app. Unfortunately June 23rd 2015 onwards Like box plugin is going to be depreciated. Instead we recommend you to implement Facebook Page plugin. </p>
<p><a href="https://developers.facebook.com/docs/plugins/page-plugin" rel="nofollow">https://developers.facebook.com/docs/plugins/page-plugin</a>  </p>
<p>Thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/#post-238955</guid>
					<title><![CDATA[Reply To: Adding Facebook SDK to the javascript custom section]]></title>
					<link>https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/#post-238955</link>
					<pubDate>Tue, 31 Mar 2015 12:56:32 +0000</pubDate>
					<dc:creator>shea c</dc:creator>

					<description>
						<![CDATA[
						<p>Thats exactly what I&#8217;m asking, I have the app ID and everything, and want to know how to use the new page plugin with the theme. Where would I insert that Javascript SDK? I tried to put it in the custom Java section of the customizer and add the correct code to the page, but it does not display. Do I have to use a child theme to implement that page-plugin like you linked to or should it work right in the custom java section of the customizer</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/#post-239014</guid>
					<title><![CDATA[Reply To: Adding Facebook SDK to the javascript custom section]]></title>
					<link>https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/#post-239014</link>
					<pubDate>Tue, 31 Mar 2015 13:55:25 +0000</pubDate>
					<dc:creator>Thai</dc:creator>

					<description>
						<![CDATA[
						<p>Hi There,<br />
Please add following PHP code below into <strong>functions.php</strong> locates in child theme folder:</p>
<pre><code>
add_action( &#039;x_before_site_begin&#039;, &#039;x_print_fb_sdk&#039; );
function x_print_fb_sdk(){
	?&gt;
	&lt;div id=&quot;fb-root&quot;&gt;&lt;/div&gt;
	&lt;script&gt;(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 = &quot;//connect.facebook.net/en_US/sdk.js#xfbml=1&amp;appId=your_FB_ID&amp;version=v2.3&quot;;
	  fjs.parentNode.insertBefore(js, fjs);
	}(document, &#039;script&#039;, &#039;facebook-jssdk&#039;));&lt;/script&gt;
	&lt;?php
}
</code></pre>
<p>After that you can replace the your_FB_ID by your Facebook AppID.<br />
Hope it helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/#post-239116</guid>
					<title><![CDATA[Reply To: Adding Facebook SDK to the javascript custom section]]></title>
					<link>https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/#post-239116</link>
					<pubDate>Tue, 31 Mar 2015 16:15:07 +0000</pubDate>
					<dc:creator>shea c</dc:creator>

					<description>
						<![CDATA[
						<p>That did the trick, thank you so much!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/#post-239250</guid>
					<title><![CDATA[Reply To: Adding Facebook SDK to the javascript custom section]]></title>
					<link>https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/#post-239250</link>
					<pubDate>Tue, 31 Mar 2015 19:19:45 +0000</pubDate>
					<dc:creator>Zeshan</dc:creator>

					<description>
						<![CDATA[
						<p>You&#8217;re welcome! 🙂</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/#post-261634</guid>
					<title><![CDATA[Reply To: Adding Facebook SDK to the javascript custom section]]></title>
					<link>https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/#post-261634</link>
					<pubDate>Wed, 29 Apr 2015 19:48:38 +0000</pubDate>
					<dc:creator>Gleb</dc:creator>

					<description>
						<![CDATA[
						<p>Is it possible to have more than one facebook page to have a like box on a website?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/#post-261660</guid>
					<title><![CDATA[Reply To: Adding Facebook SDK to the javascript custom section]]></title>
					<link>https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/#post-261660</link>
					<pubDate>Wed, 29 Apr 2015 20:18:09 +0000</pubDate>
					<dc:creator>Gleb</dc:creator>

					<description>
						<![CDATA[
						<p>nevermind, figured it out! </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/#post-261754</guid>
					<title><![CDATA[Reply To: Adding Facebook SDK to the javascript custom section]]></title>
					<link>https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/#post-261754</link>
					<pubDate>Wed, 29 Apr 2015 23:18:39 +0000</pubDate>
					<dc:creator>Prasant Rai</dc:creator>

					<description>
						<![CDATA[
						<p>Glad you figured out 🙂</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/#post-358347</guid>
					<title><![CDATA[Reply To: Adding Facebook SDK to the javascript custom section]]></title>
					<link>https://theme.co/archive/forums/topic/adding-facebook-sdk-to-the-javascript-custom-section/#post-358347</link>
					<pubDate>Thu, 13 Aug 2015 15:26:11 +0000</pubDate>
					<dc:creator>Loren N</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,<br />
I&#8217;ve tried following these instructions to get the new Facebook page plugin working but it doesn&#8217;t work. Is there a specific place in the functions php file I should add the code above?</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

