regmiprem
regmiprem

Reputation: 735

Invalid redirect_uri: Given URL is not allowed by the Application configuration in rails

I have already looked all the related answer in stackoverflow for this question but still couldn't find a working solution. Twitter and linkedin is working properly but for facebook I get this error,

{
   "error": {
      "message": "Missing client_id parameter.",
      "type": "OAuthException",
      "code": 101
   }
} 

Where do i put the link ? I did put this in Website with facebook login OPtion.

http://127.0.0.1:3000/auth/facebook/callback

Do i have to put these type of links at other place as well ?

Upvotes: 2

Views: 3028

Answers (2)

regmiprem
regmiprem

Reputation: 735

I did change config.omniauth :facebook, ENV['AUTH_FB_KEY'],
 ENV['AUTH_FB_SECRET'] into 

config.omniauth :facebook,'AUTH_FB_KEY', 'AUTH_FB_SECRET' this work for it.

Upvotes: 0

Mikhail Nikalyukin
Mikhail Nikalyukin

Reputation: 11967

Please refer to the this issue on omniauth github page. Basically your problem is in facebook credentials.

Upvotes: 1

Related Questions