Permalink
Browse files

only show friends controller if FB session is valid

  • Loading branch information...
clayallsopp committed May 9, 2012
1 parent 9cb0930 commit b77599dd2224594fe3e38df9dfc42fbe4ef3d4b7
Showing with 3 additions and 0 deletions.
  1. +3 −0 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.