简体   繁体   中英

Facebook automatic login needing double page load on Rails 3

With Facebook logged in and app authenticated, a Rails 3 site with Facebooker2 needs 2 page reloads until it automatically logs in to Facebook.

How can I make passive login work on first page load?

ruby 1.9.3p125, rails 3.2.3, facebooker2 0.0.16

You'll need a reload if you use the Javascript SDK. To skip the page reload, you'd need to use the server-side authentication flow.

https://developers.facebook.com/docs/authentication/server-side/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM