I have a problem with my application. I use heroku config variables in localhost and APIs work well. In heroku server, it doesn't.
I use the same variables and I have test them it's working (with dump method getenv()
in DefaultController
).
When I try to connect facebook here : [myapp].herokuapp.com/connect
=> OAuth error: "Error validating client secret."
I use the same variables as localhost it's really weird.
With twitter, it is redirecting to connect page with no error message but it doesn't work too.
I put in facebook API redirect OAuth url this =>
http://[myapp].herokuapp.com/connect
http://localhost:8000/connect
Only localhost work. It's the same if I delete localhost from the list and Facebook API support now multiples URL OAuth.