Getting Facebook friends with the Graph API v2.0
This blog post was originally published a little while ago. Please consider that it may no longer be relevant or even accurate.
While a lot of cool stuff came out of F8 yesterday, including the brand new Graph API v2.0, there was one change that I didn't notice until just now that will greatly impact a lot of the apps I've been involved with. In the past, we've used Facebook login as a way to get at our user's friends, to help them connect and communicate with each other. For example, we could show a user the list of their friends that haven't yet joined the app and allow them to invite their friends. However, it seems with the new update we will no longer be able to do this. And all the apps that use this functionality in Graph API v1.0 will have only one more year, before being forced to update on April 30, 2015.
However, in the Graph API v2.0 there is an important addition to the /me/friends
documentation:
Ouch.
So now, we can only display a user's friends who too have liked the app. What if I want to invite a user's friends to my app? Luckily for you, there's a Invitable Friends API
. Unluckily for you (unless you make games...):
So at this point, as far as I can tell, you can no longer get a full list of a user's friends. At least we have 365 days to get used to it.