{"id":1552,"date":"2009-07-09T02:50:45","date_gmt":"2009-07-08T21:20:45","guid":{"rendered":"http:\/\/www.chiragmehta.info\/chirag\/?p=1552"},"modified":"2009-07-30T04:09:38","modified_gmt":"2009-07-29T23:09:38","slug":"attract-facebook-fans-from-our-own-websites","status":"publish","type":"post","link":"https:\/\/www.chiragmehta.info\/chirag\/2009\/07\/09\/attract-facebook-fans-from-our-own-websites\/","title":{"rendered":"Read recent Facebook posts &#038; Attract Facebook fans from your own websites"},"content":{"rendered":"<p>Update from Facebook Team &#8230; <\/p>\n<blockquote>\n<div>As a Facebook Page owner, you can implement the Fan Box widget on your own website to gain more fans and share your Facebook updates.  Implementing requires pasting just 4 lines of code.<\/p>\n<p>The widget currently has 3 components: \u201cButton\u201d, \u201cStream\u201d (optional), and \u201cFans List\u201d (optional).  The widget can fit in a space as small as 200 x 64 (just the \u201cbutton\u201d) or offer a richer experience including recent posts and other fans at a full 600 x 544 pixels (width adjustable from 200 &#8211; 600 pixels).<\/p>\n<p>Some live examples on each Page&#8217;s own website for businesses include <a href=\"http:\/\/www.facebook.com\/note_redirect.php?note_id=101644039821&amp;h=a1f819d25b4145cb7f8ba5eecd4a957d&amp;url=http%3A%2F%2Fwww.coca-cola.com%2Ftemplate1%2Findex.jsp%3Flocale%3Den_US%26site%3D%2Fcontentstore%2Fen_US%2Fsite_assets%2Ffacebook%2Ffacebook_en_US.html\" target=\"_blank\" title=\"http:\/\/www.coca-cola.com\/template1\/index.jsp?locale=en_US&amp;site=\/contentstore\/en_US\/site_assets\/facebook\/facebook_en_US.html\"> Coca-Cola<\/a>, <a href=\"http:\/\/www.facebook.com\/note_redirect.php?note_id=101644039821&amp;h=31ab00a846ad7b9040708dc648061f84&amp;url=http%3A%2F%2Fwww.blackberry.com%2Ffacebook\" target=\"_blank\" title=\"http:\/\/www.blackberry.com\/facebook\"> Blackberry<\/a>, <a href=\"http:\/\/www.facebook.com\/note_redirect.php?note_id=101644039821&amp;h=4e0bb6418f6619f300a313b2314b6841&amp;url=http%3A%2F%2Fwww.tide.com\" target=\"_blank\" title=\"http:\/\/www.tide.com\"> Tide<\/a>, <a href=\"http:\/\/www.facebook.com\/note_redirect.php?note_id=101644039821&amp;h=1a445914cd9ed14fe295a472a9069c1b&amp;url=http%3A%2F%2Fwww.herbalessences.com%2Fus%2F\" target=\"_blank\" title=\"http:\/\/www.herbalessences.com\/us\/\"> Herbal Essences<\/a>, and<a href=\"http:\/\/www.facebook.com\/note_redirect.php?note_id=101644039821&amp;h=64555ce0f2fb8b6df56f5d6a938e3468&amp;url=http%3A%2F%2Fwww.threadless.com\" target=\"_blank\" title=\"http:\/\/www.threadless.com\"> Threadless<\/a>.\n<\/div>\n<\/blockquote>\n<p><strong>About Facebook Fan Box<\/strong><br \/>\nThe Facebook Fan Box is a social widget(just 5-10 lines of HTML Code) that allows Facebook PAGE owners(i.e., we) to attract and gain Facebook fans from their own website(i.e., ChiragMehta.info) <\/p>\n<p><strong>The Fan Box lets users:<\/strong><br \/>\n\u2022\tSee how many users are already fans, and see some of their friends who are<br \/>\n\u2022\tRead recent posts by from the Page<br \/>\n\u2022\tBecome a fan with 1-click without needing to visit the Page<\/p>\n<p><strong>Code<\/strong><br \/>\nUPDATE : Use Iframe, for easier access to Fan Box. <\/p>\n<blockquote><p>\n&lt;iframe scrolling=&quot;no&quot; frameborder=&quot;0&quot; \t\t\t<\/p>\n<p>src=&quot;http:\/\/www.facebook.com\/connect\/connect.php?id=FACEBOOK_PROFILE_ID&amp;connections=10&amp;stream=1&quot; \t\tallowtransparency=&quot;true&quot;<br \/>\n\tstyle=&quot;border: none; width: 300px; height:550px;&quot;&gt;<br \/>\n&lt;\/iframe&gt;\n<\/p><\/blockquote>\n<p>OR you can Copy following code to any page on your site where you want to display a Fan Box. <\/p>\n<blockquote><p>\n&lt;script src=&#8221;http:\/\/www.facebook.com\/js\/api_lib\/v0.4\/FeatureLoader.js.php&#8221; type=&#8221;text\/javascript&#8221;&gt;&lt;\/script&gt;&lt;script type=&#8221;text\/javascript&#8221;&gt;FB.init(&#8220;API_KEY&#8221;, &#8220;&#8221;);&lt;\/script&gt;&lt;fb:fan profile_id=&#8221;YOUR_PAGE_ID&#8221;stram=&#8221;1&#8243; connections=&#8221;10&#8243;<br \/>\nwidth=&#8221;300&#8243;&gt;&lt;\/fb:fan&gt;&lt;div style=&#8221;font-size:8px; padding-left:10px&#8221;&gt;&lt;a href=&#8221;VANITY_URL&#8221;&gt;PAGE_NAME&lt;\/a&gt; on Facebook\n<\/p><\/blockquote>\n<p><strong>Preview<\/strong><br \/>\n<center><br \/>\n<img decoding=\"async\" src=\"http:\/\/wiki.developers.facebook.com\/images\/thumb\/6\/6c\/FanBox.png\/250px-FanBox.png\" alt=\"Facebook Fan Image\" \/><br \/>\n<\/center><\/p>\n<p><strong>Customizing the Fan Box<\/strong><\/p>\n<p>The Fan Box gets rendered by the fb:fan XFBML tag. You can customize the Fan Box by changing the defaults for the following attributes in the fb:fan tag:<br \/>\n<strong>profile_id<\/strong>: The ID of the Page associated with the Fan Box.<br \/>\n<strong>stream<\/strong>: Set to 1 to display stream stories in the Fan Box or 0 to hide stream stories.<br \/>\n<strong>connections<\/strong>: The number of fans to display in the Fan Box. Specifying 0 hides the list of fans in the Fan Box.<br \/>\n<strong>width<\/strong>: The width of the Fan Box in pixels.<br \/>\n<strong>height<\/strong>: The height of the Fan Box in pixels. <\/p>\n<p><strong>Bugs (Discovered as per my Implementation)<\/strong><br \/>\nAbove code works perfectly fine in Mozilla Firefox. The fan box gets rendered properly. But the same code doesn&#8217;t render a fan box in IE,chrome and not even in Safari. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update from Facebook Team &#8230; As a Facebook Page owner, you can implement the Fan Box widget on your own website to gain more fans and share your Facebook updates. Implementing requires pasting just 4 lines of code. The widget currently has 3 components: \u201cButton\u201d, \u201cStream\u201d (optional), and \u201cFans List\u201d (optional). The widget can fit [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[47],"class_list":["post-1552","post","type-post","status-publish","format-standard","hentry","tag-facebook","post-preview"],"_links":{"self":[{"href":"https:\/\/www.chiragmehta.info\/chirag\/wp-json\/wp\/v2\/posts\/1552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chiragmehta.info\/chirag\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chiragmehta.info\/chirag\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chiragmehta.info\/chirag\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chiragmehta.info\/chirag\/wp-json\/wp\/v2\/comments?post=1552"}],"version-history":[{"count":20,"href":"https:\/\/www.chiragmehta.info\/chirag\/wp-json\/wp\/v2\/posts\/1552\/revisions"}],"predecessor-version":[{"id":1558,"href":"https:\/\/www.chiragmehta.info\/chirag\/wp-json\/wp\/v2\/posts\/1552\/revisions\/1558"}],"wp:attachment":[{"href":"https:\/\/www.chiragmehta.info\/chirag\/wp-json\/wp\/v2\/media?parent=1552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chiragmehta.info\/chirag\/wp-json\/wp\/v2\/categories?post=1552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chiragmehta.info\/chirag\/wp-json\/wp\/v2\/tags?post=1552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}