New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facebook login - "The parameter app_id is required" #155
Comments
As a comment to this, it looks like if I'm using the second option (to provide a social authentication provider through an initializer) it works. # Ensure our environment is bootstrapped with a facebook connect app
if ActiveRecord::Base.connection.table_exists? 'spree_authentication_methods'
Spree::AuthenticationMethod.where(environment: ::Rails.env, provider: 'facebook').first_or_create do |auth_method|
auth_method.api_key = ENV['FACEBOOK_APP_ID']
auth_method.api_secret = ENV['FACEBOOK_APP_SECRET']
auth_method.active = true
end
end Maybe the FB app ID an secret key aren't treated correctly if they're added from the admin section? |
where did you add this in an initializer spree_social.rb for example? |
@amoksunrise I added the code above in the |
thanks |
Just run into the same issue, using spree 3.1 and spree social 3.1. Using the admin section seems not to work while using the code in initialise works. I think that the admin section has a bug and therefore this issue shouldn't be marked as closed or at least we have another issue opened for this. |
+1 to what @uginm102 said. |
@damianlegawiec please see @uginm102's comment. |
I get "The parameter app_id is required" when I'm trying to login through facebook.
I added to my Gemfile
gem 'spree_social', github: 'spree-contrib/spree_social', branch: '3-0-stable'
and added the facebook authentication method in the admin section.I figured out that if I add the APP ID manually to the url it redirects me to facebook, but when the callback url is called, I get another
{"error":{"message":"Missing client_id parameter.","type":"OAuthException","code":101}}
.I'm pretty sure the problem is somewhere from the
Spree::OmniauthCallbacksController
, because it doesn't pass theclient_id
param correctly. I'll dig deeper into the code to see if I can find the problem and after that I'll fill in a PR, but if you guys know the solution, please let me know.Here is my full Gemfile:
The text was updated successfully, but these errors were encountered: