app/app_delegate.rb in zuckermo-0.0.1 vs app/app_delegate.rb in zuckermo-0.0.2
- old
+ new
@@ -11,10 +11,10 @@
@label = UILabel.alloc.initWithFrame [ [10,10], [300,100] ]
@label.setAccessibilityLabel 'username'
@label.setText '...'
@controller.view.addSubview @label
- Facebook.app_id = ENV['APP_ID']
+ Facebook.app_id = NSBundle.mainBundle.objectForInfoDictionaryKey('APP_ID')
Facebook.sign_in do |granted, error|
if granted
@label.setText Facebook.accounts[0].username
else
puts error.code