http://ja.asciicasts.com/episodes/241-simple-omniauth
"/auth/identity/register"
identityよりproviderが主流??
link_toを使おう
=link_to @book.url, @book.url
のほうが
%a{:href => @book.url} = @book.url
より楽
・omniのコールバック
http://localhost:3000/auth/provider/callback
これをFacebookのDeveleperにいれる?
undefined method `[]' for nil:NilClass
これのauthがどうしてもだめ
class User < ActiveRecord::Base def self.from_omniauth(auth) find_by_provider_and_uid(auth["provider"], auth["uid"]) || create_with_omniauth(auth) end def self.create_with_omniauth(auth)
requestも空
authが空っぽ。
・1.3.6じゃないとだめかも?
https://github.com/intridea/omniauth/issues/567
https://github.com/mftaher/SinatraApp-OmniAuth-Demo
https://github.com/mkdynamic/omniauth-facebook/issues/20
いいえ、関係無かった
URL: http://stackoverflow.com/questions/8100043/facebook-invalid-redirect-uri-but-the-url-looks-fine-to-me
/auth/facebook/callback
これをFacebookのDeveloperへいれる!!!
authが空っぽなのは、直接アクセスがダメだったから。