{"id":2195,"date":"2012-05-17T17:20:55","date_gmt":"2012-05-17T17:20:55","guid":{"rendered":"http:\/\/www.webputzer.com\/?p=2195"},"modified":"2012-08-16T01:56:39","modified_gmt":"2012-08-16T01:56:39","slug":"add-a-facebook-face-block-to-any-site","status":"publish","type":"post","link":"http:\/\/www.webputzer.com\/?p=2195","title":{"rendered":"Add A Facebook &#8220;Face Block&#8221; to any site"},"content":{"rendered":"<p>I&#8217;m cranky &#8211; I wasted far too much time screwing around with this, and, it proved to very simple. However, directions on Facebook, YouTube, etc. &#8211; contained confusing information. Maybe I&#8217;m an idiot. Anyway, if I don&#8217;t write this down I&#8217;ll forget what I did. All I wanted to do was have a block of faces on a damned mattress website populated with Facebook &#8220;Like&#8221; people &#8211; we&#8217;ve all seen these things, right? First of all, as of May 2012, people cannot be fans of Facebook people &#8211; they can be fans of a business, or, organizational Facebook page (eg. a fan club page, your business&#8217;s name &#8211; whatever). I&#8217;m not sure, but I don&#8217;t think that it&#8217;s always been that way (hey..I could be wrong). Maybe it&#8217;s always been that way &#8211; that&#8217;s neither here nor there, at the the moment&#8230; Like I&#8217;ve said, it&#8217;s entirely possible that I&#8217;m an idiot&#8230;. Anyway, the <strong>first thing you need to do is create the darned Facebook, non-personal, account<\/strong>. You just go <a href=\"http:\/\/www.facebook.com\/pages\/create.php\"><strong><span style=\"text-decoration: underline;\">here<\/span><\/strong><\/a> and choose &#8220;business&#8221;, or, whatever best describes your little enterprise. Once you&#8217;ve got your Facebook page online you&#8217;ll want to <strong>note the URL<\/strong> &#8211; it will be something like this (this is the one for the mattress store&#8230;.):<\/p>\n<p>http:\/\/www.facebook.com\/pages\/Wholesale-Warehouse\/3725082056433637<\/p>\n<ul>\n<li><strong>If your page is PHP<\/strong>: Create a PHP include with the following text, but replace the long string of digits which identifies your account with the correct numbers (they&#8217;re at the end of of your URL) &#8211; in other words, in this example replace <strong>372502046133637<\/strong> with the numbers at the end of <strong>your own Facebook page<\/strong>. Also, replace the link with the link to your page. Finally, replace text that says &#8220;Wholesale Warehouse&#8221;, in the example (of course). Then, just call the include where you want this to appear. You can set the height and width to whatever, change the font&#8217;s color and size, etc.&nbsp;\n<pre style=\"font-size: 11px; width: 550px;\">\r\n&lt;script type=\"text\/javascript\" src=\"http:\/\/static.ak.connect.facebook.\r\ncom\/js\/api_lib\/v0.4\/FeatureLoader.js.php\/es_ES\"&gt;&lt;\/script&gt;\r\n\r\n&lt;script type=\"text\/javascript\"&gt;FB.init(\"85f99e3497856438038769874d4cf738487\");\r\n&lt;\/script&gt;\r\n\r\n&lt;fb:fan profile_id=\"372502046133637\" stream=\"0\" connections=\"9\" \r\nlogobar=\"1\" width=\"280\" height=\"320\"&gt;&lt;\/fb:fan&gt;\r\n\r\n&lt;a href=\"http:\/\/www.facebook.com\/pages\/Wholesale-Warehouse\/372509878618933637\"&gt;\r\n&lt;font face=arial&gt;&lt;font size=2&gt;Wholesale Warehouse \r\non Facebook&lt;\/font face&gt;&lt;\/font size&gt;<\/pre>\n<p>&nbsp;<\/li>\n<li><strong>If your page is NOT PHP:<\/strong> Do exactly what&#8217;s above, except put the first two lines of javascript in the head section of your page, and, put the rest where you want this thing to appear&#8230;..that&#8217;s it.\n<p>[hana-code-insert name=&#8217;AdSense&#8217; \/]<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m cranky &#8211; I wasted far too much time screwing around with this, and, it proved to very simple. However, directions on Facebook, YouTube, etc. &#8211; contained confusing information. Maybe I&#8217;m an idiot. Anyway, if I don&#8217;t write this down I&#8217;ll forget what I did. All I wanted to do was have a block of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2367,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"h5ap_radio_sources":[],"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2195","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/posts\/2195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2195"}],"version-history":[{"count":0,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/posts\/2195\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=\/wp\/v2\/media\/2367"}],"wp:attachment":[{"href":"http:\/\/www.webputzer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2195"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.webputzer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}