{"id":107,"date":"2010-08-29T21:32:12","date_gmt":"2010-08-30T02:32:12","guid":{"rendered":"http:\/\/developer.casgrain.com\/?p=107"},"modified":"2011-04-30T07:21:18","modified_gmt":"2011-04-30T12:21:18","slug":"introducing-phfacebook-a-cocoa-framework-to-facebooks-api","status":"publish","type":"post","link":"http:\/\/developer.casgrain.com\/?p=107","title":{"rendered":"Introducing PhFacebook, a Cocoa framework to Facebook&#8217;s API"},"content":{"rendered":"<p>For the upcoming version of <a href=\"http:\/\/apps.casgrain.com\/iChibi\/\">iChibi<\/a>, I needed a MacOSX interface to <a href=\"http:\/\/developers.facebook.com\/docs\/api\">Facebook&#8217;s API<\/a>.<\/p>\n<p>\nThere are several iOS libraries (<a href=\"http:\/\/github.com\/facebook\/facebook-ios-sdk\">FB Connect<\/a>, <a href=\"http:\/\/www.getsharekit.com\/\">ShareKit<\/a>&#8230;) but I found only one that was MacOSX-specific: <a href=\"http:\/\/pointlesscrap.net\/mkabefook\">MBAbeFook<\/a>, which implements the (deprecated) <a href=\"http:\/\/developers.facebook.com\/docs\/reference\/rest\/\">Facebook REST API<\/a>.<\/p>\n<p>\nThis was a problem because:<\/p>\n<ul>\n<li>I need extended permissions, and it&#8217;s a song-and-dance to get those using the REST API<\/li>\n<li>The authentication UI from REST may present checkboxes to the user for extended permissions.<br \/>Users don&#8217;t check boxes. They click &#8220;I agree&#8221;&#8230;<\/li>\n<li>The REST API is deprecated.<\/li>\n<\/ul>\n<p>\nSo I wrote my own. PhFacebook is an embeddable MacOSX framework to easily access Facebook&#8217;s API.<\/p>\n<ul>\n<li>Uses Facebook&#8217;s new &#8216;graph&#8217; API internally, handles OAuth in a WebView for you and returns JSON strings.<\/li>\n<li>Comes with a sample application to show you how to use it.<\/li>\n<li>Supports extended permissions.<\/li>\n<li>Localized in English and French.<\/li>\n<\/ul>\n<p>\n<a href=\"http:\/\/github.com\/philippec\/PhFacebook\">Find it on github<\/a>. MIT-licensed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For the upcoming version of iChibi, I needed a MacOSX interface to Facebook&#8217;s API. There are several iOS libraries (FB Connect, ShareKit&#8230;) but I found only one that was MacOSX-specific: MBAbeFook, which implements the (deprecated) Facebook REST API. This was a problem because: I need extended permissions, and it&#8217;s a song-and-dance to get those using [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,5],"tags":[],"class_list":["post-107","post","type-post","status-publish","format-standard","hentry","category-development","category-macosx"],"_links":{"self":[{"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/posts\/107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=107"}],"version-history":[{"count":2,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":114,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=\/wp\/v2\/posts\/107\/revisions\/114"}],"wp:attachment":[{"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/developer.casgrain.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}