Using Facebook Connect with Authlogic - ruby-on-rails

I am trying to make Authlogic and Facebook Connect (using Facebook) play nice so that you can create an account either the normal registration way or with Facebook connect. I have been able to get the connect to work one way but logging out only loggs out on facebook and not on my site, I have to delete the cookies to make it working. Any help would be awesome, thank you!

Here's an example app I made using the Facebook Connect extension, authlogic and Open ID. It still needs some work, but it does function.
http://big-glow-mama.heroku.com/
http://github.com/holden/authlogic_openid_selector_example/tree/with-facebook/

This is a good gem for that.
http://github.com/viatropos/authlogic-connect

Have you tried the Facebook Connect extension for AuthLogic?

just tried omniauth with authlogic, that works like a charm
btw, authlogic-connect is out-dated
You also have an example app to check (Authlogic + Omniauth)
http://omniauth-authlogic-demo.heroku.com/

Related

Iphone Application is automatically connected to Facebook and Twitter

I have a Objective-C code and it is connecting to twitter and facebook automatically. (for example if iphone has a twitter application and application connected to twitter, my application doesn't ask username and password, it is connecting automatically) and customer doesn't want this feature.
I didn't write this this code and unfortunately my objective-c and XCode knowledge is really very bad :(
Can you give me an idea which why the code is connected automatically and how can I cancel this?
Thanks in advance.
I think in Setting of iphone check Facebook & twitter App. There you entered username & password. If you logout from there then try to post something from your app on Facebook or twitter .It will ask for Login. Before that first search for "SLComposeViewController" in your code. If this is there then remove it. Then try. Hope this will help.

how to share fixed data on facebook if used omniauth for authentication

I have used omniauth for authentication of user in rails. i just want to create a button on my site which when clicked should post to logged in users facebook profile a certain fixed data.
i have tried facebook_share gem but unable to specify the predefine text. kindly help me in this
thanks in advance
In place of facebook_share the better way is to use facebook api. link explains all
https://github.com/aayushkhandelwal11/training-assignment/blob/master/facebookshare.txt

How to update users facebook profile status from my rails web application

in my rails web application I am implementing Facebook connectivity. I want that whenever user updates his/her status on my site his/her facebook status should also be updated. Is there any working rails application for this?
Please help.Thank you.
Have a look at the Koala gem which acts as a client to the Facebook graph API and does exactly what you need.
fb_graph as well also accomplishes what the koala gem does .
Though to update on a user to user basis you'll need to have some sort of login system in place. In that case I'd look at Devise using omniauth to accomplish this.
I use devise + omniauth for authentication and getting the right access token.
I use Koala for updating + reading information.

twitter connect and rails

I am reading this tutorial: http://blog.dhavalparikh.co.in/2009/06/step-by-step-twitter-oauth-integration-with-rails/
OK, first redirect to twitter connect page. When I allow the connection, twitter redirect to https://twitter.com/oauth/authorize with a code for connect but this must redirect to a action which connect and create a new user in my db.
SO which could be the problem? How i must config the twitter application callback url and app url for localhost.
please i need this answer
Thanks in advance
This doesn't really answer your question but is a nicer way to do this.
Omniauth is a nice gem for rails that makes it very easy to offer twitter, facebook etc. login.
A good intro to this was created by Ryan Bates of Railscasts.
The problem is: Twitter send the token information via post. SO i receive the token by params.
Also there is a problem with oauth 0.4.
I am using oauth 0.3.4 because work in the correct form when twitter try redirect to callback url.

Rails 3 and Devise: Omniauth vs. Facebook Connect

I am currently using Devise+Omniauth on my Rails 3 app to authenticate users. My client saw this and doesn't like how omniauth redirects you away from the site. He wants something like on digg.com, which I believe uses facebook connect to authenticate (and opens in a popup instead of redirecting).
What are some arguements for my client to keep him using the Omniauth method? Why is it better than Facebook connect.
And failing that, are there any good resources for logging users in with a facebook connect popup window? Or really anything involving facebook and a popup.
Thanks!
OmniAuth supports login via the Facebook Javascript SDK, which works through a popup. You just need to include the right files. I don't remember all the details, but this should help:
https://github.com/intridea/omniauth/issues/120

Resources