omniauth

Turn omniauth facebook login into a popup

倖福魔咒の 提交于 2019-11-26 06:54:39
问题 I\'m using the omniauth gem with rails and it works great with loging in users, but everytime it takes you to the fb login page then redirects you back. I was wondering if there is a way to do what most pages do and show the fb login in a popup and then reload the parent div once that is complete. Any ideas? Thanks! 回答1: Sure, you can easily. In your view: =link_to "Log in with Facebook", omniauth_authorize_path(:user, :facebook), :class => "popup", :"data-width" => 600, :"data-height" => 400

OmniAuth & Facebook: certificate verify failed [duplicate]

喜欢而已 提交于 2019-11-26 06:04:43
问题 This question already has answers here : SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (37 answers) Closed 4 years ago . I\'ve followed Railscast #235 to try and set up a minimal Facebook authentication. I\'ve first set up a Twitter authentication, as done by Ryan himself. That worked flawlessly. I then moved on to adding a Facebook login. However, after authorizing the app the redirect to /auth/facebook/callback fails with: SSL_connect