Sorry, what was your name again? Remembering Names using Facebook's API

May 18th 16

I was interested in my seemingly varying ability to remember new people’s names. I thought that it would be interesting to try out various different techniques that claim to seemingly improve this skill.

Remember the name

Remember the Name

Try now!

Facebook API

To find people’s random pictures we hit Facebook’s API with different ids:

deferred = $q.defer()
  $http
    .get("//graph.facebook.com/#{utils.randomer()}/?fields=picture,name")
    .success (data) ->
      deferred.resolve data
    .error (data) ->
      failure data
  deferred.promise

We can then parse the result to determine whether or not they have a public profile picture:

success = (data) ->
  if data.picture.data.is_silhouette
    # try again...

Source and details

Introduction to Win Shortcuts

Next