This was the graph api that enabled companies like Zynga to grow virally.
You used to be able to do searches on Facebook like "photos taken by friends of _____" and you could easily stalk them without being friends with them. Today that search will yield photos only if you are friends with them, or they enabled their privacy settings to public.