ruby on rails 3 - Missing client_id with Devise and Facebook-Omniauth -


here initializers/devise.rb code facebook:

require "omniauth-facebook" config.omniauth :facebook, "app_key", "app_secret" 

and have added:

devise :omniauthable model want able use facebook with.

when click on link:

<%= link_to "sign in facebook", user_omniauth_authorize_path(:facebook) %> 

i get:

an oauthexception message: "message": "missing client_id parameter.",

notice app_key , app_secret ones can see on facebook app haven't put here.

on url redirected when clicking sign in facebook link see client_id parameter empty:

https://graph.facebook.com/oauth/authorize?response_type=code&client_id&

but why?

i have never done directly devise. works devise.

omniauth podcast on railscasts

alternatively, if still want stick using devise built-in omiauth, try find way provide app id , app secret. i'm pretty sure have provide in devise.rb in config/initializers/


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -