As part of our continuing series of "how tos," we thought it'd be interesting to show how you can easily create these same social experiences. We've put together a sample app using the Graph API that searches and presents an ordered list of the movies most liked amongst a user and her friends. To access the set of movies that a user and her friends like, you must first ask the user to authorize your app and request specific permissions : user_likes and friend_likes . The user authorizes your app by logging in to your site using their Facebook account. The simplest way to implement the login button is to use the Login button social plugin along with our JavaScript SDK as indicated below. The user_likes and friend_likes permissions are added as parameters: The end result is a list of movies sorted by the most liked amongst your friends. The full sample app is written entirely in Javascript and HTML. Run the app by clicking here . The sample app code is pasted below, but you can also "view source" on the site to see the entire source code.