I've been following Stuart's tutorial at
http://www.madebymany.co.uk/tutorial-for-restful_authentication-on-rails-with-facebook-connect-in-15-minutes-00523
and have been having a problem:
I get a NoMethodError in UsersController#link_user_accounts; Rails
doesn’t seem to recognize “facebook_session”. I have facebooker
installed and have successfully authenticated using the normal
Facebook API methods.
Has anyone tried this before? Anyone know what might be wrong? It
seems that somehow the Facebooker library isn't getting fully
loaded...
If you're trying to integrate Facebook Connect authentication to your application, I would strongly recommend switching from restful_authentication to Authlogic. It has an addon that gives you easy to use access to Facebook Connect.
You can download an example app that uses Authlogic here to take a look.
For the facebook-session to work, all files should be at the correct domain. Have you got all the files / libraries on the same domain?
Related
I'm looking to integrate Gmail into my rails project. The gmail will basically let the user authenticate with their gmail account so they can view, create, and reply to emails from their gmail account.
Is there any major gems that makes this easier than going through the gmail documentation from google ?
I am not sure about gem because I am not from ruby background. But I can help you with the way to proceed further with gmail authentication. Gmail provided the OAuth integration which will basically authenticate your app's user on behalf of you.
useful link: https://developers.google.com/gmail/api/auth/about-auth
once you get this concept then you can move ahead with more specific question like ruby gem/sdk to integrate gmail OAuth with your application.
Thanks, hope this helps !
Going through the documentation is always a good idea even if you can handle it all with gem, understanding what you are doing is helpful and it makes fixing any bugs far easier.
However to answer your question OmniAuth Google OAuth2 should cover your needs, you will also need to read some documentation though.
can anyone tell me the get start with the facebook API using koala and devise. Is there any availability to get users based on the access token. I also want to know how to post it in free heroku web hosting.
I want a nice tutorial go through this.
thanks in advace
Finally i completed my task using fb_graph without need for devise. I posted it in following heroku url http://arcane-hamlet-5439.herokuapp.com
https://devcenter.heroku.com/articles/git tutorial helps me a lot to push it into heroku
I am using omniauth to register multiple user accounts from facebook, twitter and tumblr. I succesfully set up the connections to facebook and twitter, but i fail to connect to Tumblr.
The omniauth homepage on github tells me it does work with Tumblr, but does'nt supply me with any documentation on this provider.
I don't know what credentials i have to use for the initializers/omniauth file. I don't have any consumer keys/secret; Tumblr does not even supply these keys.
Ideas anyone?
It turns out Tumblr does have proper oauth 2 authentication. Strangely they managed to hide their application registration page. I couldn't find this page anywhere, not by googling 'Tumblr app registration' or anything. They don't even mention it in any of their api documentation (which I found pretty good on itself btw). It almost look like they do not even like 3rd party apps?
Eventually i found the registration page trough a php authentication tutorial. I will paste it here for future reference:
http://www.tumblr.com/oauth/register
I am exploring facebook integration with my rails app and wondering what is the best practice for rails applications.
1 - Is js sdk the better route or the facebooker gem? I would like to allow users to login via facebook, post content/links to their walls, see friend activity in the application, invite fb friends, from the rails app etc.
2 - Can either of these methods be tested locally or do I need a hosted internet app?
3 - I already do fb authentication for login using janrain/rpx-now via authlogic-rpx plugin. Will this have any conflict with the facebooker gem or the fb js sdk. And..in order to use the fb pluging/js sdk/facebooker etc, is it required to do the authentication via those methods or can I authenticate via rpx/janrain but access feeds/friend activity etc from the facebooker gem/js sdk etc?
Thanks
1) I often use both. I find most of the work to be easier using the server side SDK, but we do occasionally use the js one as well. I would check out Facebooker2, it's much more simple than the original Facebooker
2) Both can be used locally, but you do need internet connectivity to talk to Facebook.
3) If you get a valid access token, you can use Facebooker with the RPX stuff. You would need to change the way you do the client setup.
I'm currently using Authlogic to handle all user accounts, but our company has switched over to Google apps and I would much rather use that same authentication for all users.
My question is - how?
I know I'll need the ruby-openid gem but I have yet to integrate authentication with a 3rd party. Any recent examples or tutorials out there to help guide the way?
Thanks!
There is a good resource here that I've used to get this working in the past.
This does what you are looking for: authlogic_openid_selector_example. It isn't a tutorial but you can have a look at the code.
Seth Ladd, a Google developer advocates, has a blog post on how to authenticate using a google account in a rails 3 appl. You may need to change the example depending on how google apps is configured in your company.
Just a thought -- RPX has the ability to do logins from google, and you could use the Authlogic RPX plugin