Facebook Single sign-on integration to my application - Beginner
I have implemented the `Facebook`'s `Single sign-on (SSO)` to my application. I followed the [example][1] given by `facebook` and all the code was taken from it.

It works perfectly. But my problem now is that i need to know if the login was successful or failed. I need to store this result (if success/fail) in my application as `NSUserDefault`. `Facebook` doesn't return a `JSON` string saying if the login was a success or failed. 

So can someone please tell me how do i know if the login was a success or failure.

Please point me to a tutorial or post some code so that i could understand.


  [1]: http://developers.facebook.com/docs/mobile/ios/build/
Facebook Single sign-on integration to my application - Beginner
===

I have implemented the `Facebook`'s `Single sign-on (SSO)` to my application. I followed the [example][1] given by `facebook` and all the code was taken from it.

It works perfectly. But my problem now is that i need to know if the login was successful or failed. I need to store this result (if success/fail) in my application as `NSUserDefault`. `Facebook` doesn't return a `JSON` string saying if the login was a success or failed. 

So can someone please tell me how do i know if the login was a success or failure.

Please point me to a tutorial or post some code so that i could understand.


  [1]: http://developers.facebook.com/docs/mobile/ios/build/