I tried [FBSession activesession close;]
, but I am not getting the proper solution.
I got the solution. When your application has crashed and your session is still alive, at that time just check this method:
if([FBSession activeSession])
{
[[FBSession activeSession] closeAndClearTokenInformation];
}
, in this application delegate:
-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
}