{"id":233,"date":"2013-07-22T21:16:33","date_gmt":"2013-07-23T01:16:33","guid":{"rendered":"http:\/\/www.mcgurrin.com\/robots\/?p=233"},"modified":"2013-07-22T21:17:17","modified_gmt":"2013-07-23T01:17:17","slug":"facebook-api-and-meta-data","status":"publish","type":"post","link":"https:\/\/www.mcgurrin.info\/robots\/233\/","title":{"rendered":"Facebook API and meta-data"},"content":{"rendered":"<p>The next post will complete my review of the<a href=\"http:\/\/www.makershed.com\/MAKE_Arduino_Powered_Robot_Kit_2WD_p\/msrob2w.htm\">\u00a0MAKE Rovera 2WD Arduino Robot Kit<\/a>. \u00a0I&#8217;ve been busy with vacation, work travel, and other projects. One of the small side projects that distracted me may be of interest to some readers. It&#8217;s my first foray into the Facebook API and using some of the data it makes available about you and your friends. \u00a0Inspired by Kieran Healy&#8217;s blog post\u00a0<em><a href=\" http:\/\/kieranhealy.org\/blog\/archives\/2013\/06\/09\/using-metadata-to-find-paul-revere\/\">Using Metadata to Find Paul Revere<\/a>\u00a0<\/em>I decided to look at the &#8220;page likes&#8221; that my friends and I had on Facebook, and see who among us had the most similar likes, and some related data. \u00a0I wrote a python script to retried and analyze the data. \u00a0You \u00a0can read the full readme and download the script on my <a href=\"https:\/\/github.com\/ViennaMike\/Facebook-Similar-Likes\">GitHub repository<\/a>.<\/p>\n<p>The script prints out:<\/p>\n<ul>\n<li>The three pages that have the most likes amongst you and your friends<\/li>\n<li>The friend most similar to you in terms of page likes (using the Jaccard coeffiecient as the measure (see\u00a0<a href=\"http:\/\/en.wikipedia.org\/wiki\/Jaccard_index\">http:\/\/en.wikipedia.org\/wiki\/Jaccard_index<\/a>), and<\/li>\n<li>The two friends who are most similar to each other in terms of page likes (again, using the same metric and printing out the same information)<\/li>\n<\/ul>\n<p>Sample output:<\/p>\n<p style=\"padding-left: 30px;\">The three Facebook pages most liked by you and your friends are:<br \/>\nAbney Park with 8.0 likes<br \/>\nPhiladelphia Phillies with 7.0 likes<br \/>\nPhiladelphia Eagles with 7.0 likes<\/p>\n<p style=\"padding-left: 30px;\">The most similar friend to me is John Smith The correlation between page likes, on a 0 to 100% score, is: 3% The page likes we have in common are: [u&#8217;The Big Bang Theory&#8217;, u&#8217;Philadelphia Eagles&#8217;]<\/p>\n<p style=\"padding-left: 30px;\">The two most similar friends are [u&#8217;Ed Jones&#8217;, u&#8217;Doug Anderson&#8217;] The correlation between their page likes, on a 0 to 100% score, is: 8% The pages they have in common are: [u&#8217;Bruce Springsteen&#8217;, u&#8217;American Graffiti&#8217;, u&#8217;The Beatles&#8217;, u&#8217;Pittsburgh Pirates&#8217;, u&#8217;Casablanca&#8217;]<\/p>\n<p>The program does NOT get the required Facebook user access token for account. You need to go to\u00a0<a href=\"https:\/\/developers.facebook.com\/tools\/explorer\/\">https:\/\/developers.facebook.com\/tools\/explorer\/<\/a>\u00a0to do so, and then paste it where indicated in the program.<\/p>\n<p>I&#8217;ve also got to give a shout out to <a href=\"http:\/\/shop.oreilly.com\/product\/9780596529321.do\"><em>Programming Collective Intelligence<\/em><\/a>\u00a0by Toby Segaran for some of the ideas used.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The next post will complete my review of the\u00a0MAKE Rovera 2WD Arduino Robot Kit. \u00a0I&#8217;ve been busy with vacation, work travel, and other projects. One of the small side projects that distracted me may be of interest to some readers. &hellip; <a href=\"https:\/\/www.mcgurrin.info\/robots\/233\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[42,41,12,40],"_links":{"self":[{"href":"https:\/\/www.mcgurrin.info\/robots\/wp-json\/wp\/v2\/posts\/233"}],"collection":[{"href":"https:\/\/www.mcgurrin.info\/robots\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mcgurrin.info\/robots\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mcgurrin.info\/robots\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mcgurrin.info\/robots\/wp-json\/wp\/v2\/comments?post=233"}],"version-history":[{"count":8,"href":"https:\/\/www.mcgurrin.info\/robots\/wp-json\/wp\/v2\/posts\/233\/revisions"}],"predecessor-version":[{"id":241,"href":"https:\/\/www.mcgurrin.info\/robots\/wp-json\/wp\/v2\/posts\/233\/revisions\/241"}],"wp:attachment":[{"href":"https:\/\/www.mcgurrin.info\/robots\/wp-json\/wp\/v2\/media?parent=233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mcgurrin.info\/robots\/wp-json\/wp\/v2\/categories?post=233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mcgurrin.info\/robots\/wp-json\/wp\/v2\/tags?post=233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}