Getting facebook’s app_id or secret_id in Rails console/app

Problem

You would like to get access to the facebook app_id or secret_id in your Rails application.

Solution

You can use the following in your console/app:

Devise.omniauth_configs[:facebook].args[0]