Google Map Facebook Application written in ASP.NET

Back in April of 2009 I wrote a post about a Facebook application named SocialMine. It basically plots your social network on a map based on information for your network using $g(FQL queries). I’m writing this post because I’ve recently tweaked the application to correct a problem where the vast majority of your friends didn’t appear on the map. Initially, I was thinking the issue was related to all of the $g(Facebook profile privacy concerns) from the last 18+ months though it turns out the code I wrote to parse the results for use in a $g(Simile Exhibit) was failing. Facebook changed the results for current_location which broke my code, a problem that’s now fixed. Despite the fix a user commented that they couldn’t see any of their friends on the map and after a little digging I discovered that he wasn’t getting any geographic information back for any of his friends. Using my ASP.NET Facebook Starter Application I suggested he try few queries using the FQL page so he could debug what’s being returned. I thought I post the same steps here in case anyone wants to review their own FQL data.

  • Add facebookaspnet (another application of mine) to your account.
  • Once in that application click on the FQL link at the top which will take you to a page where you can execute FQL queries.
  • Paste this FQL statement into the edit box substituting your UID (provided on the page):
    SELECT name,current_location FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 =<uid> )
  • Check the “Use JSON” option
  • Click the Execute button and check to see if the location data is null
  • SocialMine application profile page
SocialMine also makes use of this HttpHandler for processing FQL queries.