lancejpollard / authlogic-connect

Instant Oauth and OpenID support for your Rails and Sinatra Apps
MIT License
148 stars 27 forks source link

"Offline access" privilege #31

Open howl9 opened 14 years ago

howl9 commented 14 years ago

The plugin has been helpful, thanks!

Two questions are:

  1. I tested to avoid requiring the "offline access" permission for Facebook Connect. I realize that the privilege is required so that Facebook will return a permanent access token, which is used in authlogic-connect to uniquely identity a Facebook user. I tested removing the "offline access" request with the authlogic-connet-rails2-example and it works fine by creating a new user record for every fresh login to Facebook. I wonder if we could (and how to) modify the plugin so that somewhere during the 'save' process, the application will check if a Facebook user has previously login (based on his email address) and return this record (instead of creating a new record). IMHO, the requested "offline access" privilege may not popular for end users.
  2. Can authlogic-connect logout a user 'from Facebook'?

Thanks!