Search code examples
ruby-on-railsfacebookfacebook-graph-apiprivacy

Getting friends' information through Facebook Connect


I have an app that needs to gain access to a user's friends' information. For example, say I decided to connect to example.com with Facebook Connect. Now example.com has the information about me (name, picture, education etc...). example.com requires to know something about my friend, John Smith, whom I can see the profile information of through facebook. Is there a way I can give example.com access to John Smith's details? (Even basic ones)?

Thanks!


Solution

  • Yes, you can query "/me/friends" to get names and ids of someone's friends.

    Check out their Graph OAUth API for more details.