Skip to content
Browse files

only show friends controller if FB session is valid

  • Loading branch information...
1 parent 9cb0930 commit b77599dd2224594fe3e38df9dfc42fbe4ef3d4b7 @clayallsopp committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 examples/FacebookGraph/app/app_delegate.rb
View
3 examples/FacebookGraph/app/app_delegate.rb
@@ -18,6 +18,9 @@ def application(application, didFinishLaunchingWithOptions:launchOptions)
if defaults["FBAccessTokenKey"] && defaults["FBExpirationDateKey"]
@facebook.accessToken = defaults["FBAccessTokenKey"]
@facebook.expirationDate = defaults["FBExpirationDateKey"]
+ end
+
+ if facebook.isSessionValid
openFriendsContorller
else
@navigationController.pushViewController(FacebookLoginController.alloc.init, animated: false)

0 comments on commit b77599d

Please sign in to comment.
Something went wrong with that request. Please try again.