Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add production application configuration

  • Loading branch information...
commit 4f4190d2aebfc11bcc222a9b9f98980a0139d749 1 parent 3956b05
Adrien Giboire authored
Showing with 4 additions and 3 deletions.
  1. +2 −1  config/facebook.yml
  2. +2 −2 config/initializers/facebook.rb
3  config/facebook.yml
View
@@ -1,4 +1,5 @@
development:
access_token: 'AAADFZAIL8xY8BAJgwJreaDOxXjvflCY15Tf0hoQjWCh8ZCrTmKIfxIZCBJNymXZAhjKm9FK7Y9lT840k5gMMXc6ZB9USNHasZD'
production:
- access_token: 'AAADFZAIL8xY8BAJgwJreaDOxXjvflCY15Tf0hoQjWCh8ZCrTmKIfxIZCBJNymXZAhjKm9FK7Y9lT840k5gMMXc6ZB9USNHasZD'
+ app_id: 225781014205507
+ app_secret: 'd645e6a60c7c23674500b3e3dcfef30f'
4 config/initializers/facebook.rb
View
@@ -1,4 +1,4 @@
module Facebook
CONFIG = YAML.load_file(Rails.root.join('config/facebook.yml'))[Rails.env]
- ACCESS_TOKEN = CONFIG['access_token']
-end
+ ACCESS_TOKEN = CONFIG['access_token'] || CONFIG['app_secret']
+end
Please sign in to comment.
Something went wrong with that request. Please try again.