开发者

Omniauth facebook request friends uid

开发者 https://www.devze.com 2023-03-07 21:16 出处:网络
I am a rails newbie and I have followed Railscasts Episodes 235 and 236 regarding logging 开发者_开发技巧in with Omniauth. I have made it so a user can connect with Facebook and it grabs his email and

I am a rails newbie and I have followed Railscasts Episodes 235 and 236 regarding logging 开发者_开发技巧in with Omniauth. I have made it so a user can connect with Facebook and it grabs his email and his uid. However, i would like to grab his friends uid too. What i would like is a feature on my application so users can see their friends, from Facebook, who are using my application too. How can I accomplish this?


Hey Jake, I think this is what you need: https://graph.facebook.com/me/friends?access_token=[your access token]

Read more here: http://developers.facebook.com/docs/reference/api/user/ and scroll down to Connections

0

精彩评论

暂无评论...
验证码 换一张
取 消