通过facebook,gmail,twitter等在rails应用程序中找到朋友 [英] finding friends in a rails app via facebook, gmail, twitter, etc
问题描述
此外,我将添加功能,允许用户通过这些相同的网站邀请他们的未注册的朋友到我的网站。
将来我还希望使用户可以将我们的网站上的提交内容发布到其他各种网站。
此时,最重要的功能是使用户能够看到其他网站上的哪些联系人注册了我的网站。
什么是最好的方法呢?我应该寻找什么宝石(OAuth,RF,Facebook,等等)。
我目前正在使用安静的身份验证(另外,有人可以指出我的方向问题,答案如何允许用户登录,使用安静的身份验证,使用他们的用户名或他们的电子邮件?)
谢谢!
自从发布以来已经很年龄了,但是我觉得这可能与任何发生在这个问题上的人有关,最好的方法是使用 https://github.com/intridea/omniauth 宝石。
对于邀请,您应该看看 https:// github.com/Diego81/omnicontacts 。
此外,如果您使用较新版本的Rails和devise,那么您应该查看由Ryan Bates演示的使用Devise http://railscasts.com/episodes/235-devise-and-omniauth-revised 。
I have built a social networking app in rails, and am looking for a simple way to allow users to login to their various other accounts (OAuth?) such as facebook, twitter, gmail, other mail clients, etc and see if their friends/contacts on those sites are signed up for my site.
Additionally I will be adding functionality to allow users to invite their non-signed up friends to my site via these same sites.
In the future I will also want to make it so that users can post their submissions on my site to these various other sites.
At this moment though, the most important feature is enabling users to see which of their contacts on these other sites are signed up for my site.
What is the best way to go about this? What gems should I be looking for (OAuth, RFacebook, Facebooker, etc).
I am currently using restful authentication (Also, can someone point me in the direction of a question that answers how to allow users to sign in, using restful authentication, using their username OR their email?)
Thanks!
It's been ages since this was posted, but I felt it might be relevant to anyone who happens upon this question, the best way to do this is using the https://github.com/intridea/omniauth gem.
For invites you should take a look at https://github.com/Diego81/omnicontacts.
Also, if you are using a newer version of Rails and devise then you should check out this screen cast by Ryan Bates on using omniauth with Devise http://railscasts.com/episodes/235-devise-and-omniauth-revised.
这篇关于通过facebook,gmail,twitter等在rails应用程序中找到朋友的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!