{"id":130,"date":"2010-08-26T08:53:42","date_gmt":"2010-08-26T08:53:42","guid":{"rendered":"http:\/\/todepoint.com\/blog\/?p=130"},"modified":"2010-08-26T08:53:42","modified_gmt":"2010-08-26T08:53:42","slug":"tips-on-connecting-blogs-to-facebook","status":"publish","type":"post","link":"https:\/\/todepoint.com\/blog\/2010\/08\/26\/tips-on-connecting-blogs-to-facebook\/","title":{"rendered":"Tips on connecting blogs to Facebook"},"content":{"rendered":"<p>I just finished connecting my blog and few other pages on my site to Facebook, to enjoy some sharing goodness of the social community, as well as Facebook&#8217;s &#8216;insight&#8217; statistics &#8211; why not enjoy what is given for free right?<\/p>\n<p>I had some setbacks and strugles along the way, thought it might save you some time (and wasted &#8216;Likes&#8217; too) to write few tips down. It will not be a full tutorial, instead I will focus on some oddities on the Facebook side:<\/p>\n<p>First tip will be: Do not implement until you REALLY understand what your options are and what exactly you want to do. Facebook offers two main options for adding a &#8216;Like&#8217; button to your page\/site\/blog, one is IFRAME, second is XFBML. The iframe option is as simple as adding a line in your html source, and will get you going in seconds. The xfbml is  based on their <a href=\"http:\/\/developers.facebook.com\/docs\/reference\/javascript\/\" target=\"_blank\">Javascript SDK<\/a>, and sports the Facebook &#8216;insight&#8217; statistics via open graph, but requires few preliminary steps which are kinda tricky as the documentation is fairly sparse. Obviously we would prefer the xfbml option.<\/p>\n<p>In order to use xfbml you will need an <strong>AppID<\/strong>, which require you to set up an application, to do that you will have to add the <strong>Developer application<\/strong> to your Facebook Profile.<\/p>\n<p>Then, you have to <strong>activate<\/strong> you developer account &#8211; you have to give you cell number, after which you will receive a code via sms to submit.<\/p>\n<p>Then you can <strong>create an application<\/strong> in Facebook <a href=\"http:\/\/www.facebook.com\/developers\" target=\"_blank\" title=\"create a Facebook application\">here<\/a>.<br \/>\n* This page has a strange behavior, you will define your application name, pass a captcha and receive an Error page:<br \/>\n<span style=\"color:black;\">&#8220;Sorry, an error has occurred.<br \/>\nWe&#8217;re working on getting this fixed as soon as we can.&#8221;<\/span><br \/>\n<img loading=\"lazy\" src=\"http:\/\/farm5.static.flickr.com\/4122\/4928377843_bbc9f1d4cf.jpg\" width=\"450\" height=\"200\" alt=\"Creating Facebook application error\" style=\"border:1px solid #ccc;\" \/><br \/>\nBut if you look at the column on the right in the developers page, you will see that the application was actually created:<br \/>\n<img loading=\"lazy\" src=\"http:\/\/farm5.static.flickr.com\/4073\/4928377801_3c9db30155.jpg\" width=\"450\" height=\"240\" alt=\"Facebook applications list\" style=\"border:1px solid #ccc;\" \/> (Facebook, are you serious about that? is this some kind of a test?) I ended up creating about 10 applications, read countless forums threads until I found it by mistake!<\/p>\n<p>After that you can start implementing, follow the instruction <a href=\"http:\/\/forum.developers.facebook.net\/viewtopic.php?pid=223994\" target=\"_blank\" title=\"Like button XFBML tutorial\">here<\/a>  which are pretty simple.<\/p>\n<p>Since I thought Facebook application creation service is down, I started with the iframe version, obviously a mistake as all the &#8216;Likes&#8217; I got were dumped once I connected the xfbml. damn.<\/p>\n<p>Good luck and may the force be with you..<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just finished connecting my blog and few other pages on my site to Facebook, to enjoy some sharing goodness of the social community, as well as Facebook&#8217;s &#8216;insight&#8217; statistics &#8211; why not enjoy what is given for free right? I had some setbacks and&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[23,27,28],"tags":[],"_links":{"self":[{"href":"https:\/\/todepoint.com\/blog\/wp-json\/wp\/v2\/posts\/130"}],"collection":[{"href":"https:\/\/todepoint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/todepoint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/todepoint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/todepoint.com\/blog\/wp-json\/wp\/v2\/comments?post=130"}],"version-history":[{"count":0,"href":"https:\/\/todepoint.com\/blog\/wp-json\/wp\/v2\/posts\/130\/revisions"}],"wp:attachment":[{"href":"https:\/\/todepoint.com\/blog\/wp-json\/wp\/v2\/media?parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/todepoint.com\/blog\/wp-json\/wp\/v2\/categories?post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/todepoint.com\/blog\/wp-json\/wp\/v2\/tags?post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}