Unable to read env key
richard-kellermeyer opened this issue · comments
I'm having the following error:
** (RuntimeError) unable to read env key: appsecret for app: facebook lib/facebook/config.ex:2: Facebook.Config.get_env/1 lib/facebook.ex:71: Facebook.me/2
Even after setting the environment variable in a .env file, and setting the config.exs like so:
config :facebook, Users.Facebook, appsecret: System.get_env("FB_ACCESS_TOKEN")
Any advice?
Disregard, I figured out the issue ... I needed to start :facebook in def application do ... end