Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

only show friends controller if FB session is valid

  • Loading branch information...
commit b77599dd2224594fe3e38df9dfc42fbe4ef3d4b7 1 parent 9cb0930
@clayallsopp authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.