Skip to primary content
Skip to secondary content

The Aspiring Roboticist

Notes from a computer and robotics hobbyist

The Aspiring Roboticist

Main menu

  • Home
  • About
  • World Maker Faire 2013

Tag Archives: facebook

Facebook API and meta-data

Posted on July 22, 2013 by ViennaMike
Reply

The next post will complete my review of the MAKE Rovera 2WD Arduino Robot Kit.  I’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’s my first foray into the Facebook API and using some of the data it makes available about you and your friends.  Inspired by Kieran Healy’s blog post Using Metadata to Find Paul Revere I decided to look at the “page likes” that my friends and I had on Facebook, and see who among us had the most similar likes, and some related data.  I wrote a python script to retried and analyze the data.  You  can read the full readme and download the script on my GitHub repository.

The script prints out:

  • The three pages that have the most likes amongst you and your friends
  • The friend most similar to you in terms of page likes (using the Jaccard coeffiecient as the measure (see http://en.wikipedia.org/wiki/Jaccard_index), and
  • 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)

Sample output:

The three Facebook pages most liked by you and your friends are:
Abney Park with 8.0 likes
Philadelphia Phillies with 7.0 likes
Philadelphia Eagles with 7.0 likes

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’The Big Bang Theory’, u’Philadelphia Eagles’]

The two most similar friends are [u’Ed Jones’, u’Doug Anderson’] The correlation between their page likes, on a 0 to 100% score, is: 8% The pages they have in common are: [u’Bruce Springsteen’, u’American Graffiti’, u’The Beatles’, u’Pittsburgh Pirates’, u’Casablanca’]

The program does NOT get the required Facebook user access token for account. You need to go to https://developers.facebook.com/tools/explorer/ to do so, and then paste it where indicated in the program.

I’ve also got to give a shout out to Programming Collective Intelligence by Toby Segaran for some of the ideas used.

Posted in Uncategorized | Tagged facebook, meta=data, programming, python | Leave a reply

Stack Exchange Profile

profile for ViennaMike on Stack Exchange, a network of free, community-driven Q&A sites

Recent Posts

  • Quick Post #5: A Utility for Converting .obj Files Created by Microsoft 3D Builder
  • Pi-based multi-prop trigger for animatronics, Part 1
  • Quick Post #4: 3d Printed Monitor Stand
  • Quick Post #3: Some Thoughts on Cybersecurity from the Netflix Zero Day Miniseries
  • Quick Post #2: ChatGPT to extract data from PDFs

Recent Comments

  • ViennaMike on Further UPDATED for Halloween 2021! ChatterPi: a Raspberry Pi Audio Servo Controller for Talking Skulls
  • Andy on Further UPDATED for Halloween 2021! ChatterPi: a Raspberry Pi Audio Servo Controller for Talking Skulls
  • ViennaMike on Further UPDATED for Halloween 2021! ChatterPi: a Raspberry Pi Audio Servo Controller for Talking Skulls
  • Sean on Further UPDATED for Halloween 2021! ChatterPi: a Raspberry Pi Audio Servo Controller for Talking Skulls
  • ViennaMike on Further UPDATED for Halloween 2021! ChatterPi: a Raspberry Pi Audio Servo Controller for Talking Skulls

Archives

  • March 2025
  • February 2025
  • October 2024
  • February 2023
  • January 2023
  • May 2021
  • April 2021
  • October 2020
  • April 2020
  • December 2019
  • November 2019
  • April 2019
  • June 2018
  • April 2018
  • March 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • August 2017
  • March 2017
  • June 2016
  • May 2016
  • April 2016
  • December 2015
  • June 2015
  • May 2015
  • January 2015
  • December 2014
  • February 2014
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • February 2013
  • January 2013
  • December 2012
  • October 2012
  • September 2012
  • July 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012

Tags

  • 3D printers
  • Alexa
  • animatronics
  • Arduino
  • audio
  • automated vehicles
  • autonomous vehicles
  • AVC
  • AWS lambda
  • beautiful soup
  • CircuitPython
  • compass
  • Cory Doctorow
  • data
  • dead reckoning
  • education
  • electronics
  • EWMA
  • filters
  • Halloween
  • interrupts
  • kits
  • LIDAR
  • maker faire
  • metro library
  • MOOC
  • noise
  • odometry
  • parts
  • PIR
  • positioning
  • programming
  • props
  • puzzles
  • python
  • R/C
  • Raspberry Pi
  • robots
  • Romeo
  • sensors
  • servos
  • statistics
  • tools
  • wheel encoder. electronics
  • Yorick

Blogroll

  • Bot Thoughts
  • Guy NXT door
  • Let's Make Robots
  • My personal homepage
  • RCArduino
  • Robotics Stack Exchange
  • Robotics Tutorials from RidgeSoft
  • uC Hobby

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Proudly powered by WordPress