I'm working on Facebook authentication concept in your app, for I have used the Facebook SDK. When FB account settings are available for user I am able to get information but the settings to an account Facebook authentication Safari is not available by Fbiars in.
AppDelegate * appDelegate = [[UIApplication share applicant] delegate]; If (appDelegate.session.isOpen) {[FBSession.active session closed and collective information]; [NSUserDefaults resetStandardUserDefaults]; } Else (if (appDelegate.session.state! = FBSessionStateCreated!) {AppDelegate.session = [[Fbisasn light] init];} [AppDelegate.session openWithCompletionHandler: ^ (FBSession * session, FBSessionState position, NSError * error) {if (error) {NSLog (@ "error ..:% @", error);} else {[self Adytndrishy];}}];} }
I Facebook used the above code for Safari certification, but it does not work I am doing wrong in the idea that I above code.
thanks to everyone.
just your Change the code as:
AppDelegate * appDelegate = [[UIApplication shared application] representative]; if (appDelegate.session.isOpen) {[self update view];} and (if ( AppDelegate.session.state! = FBSessionStateCreated!) {AppDelegate.session = [[FBSAction Alok] init];} [AppDelegate.session openWithCompletionHandler: ^ (FBSession * session, FBSessionState status, NSError * error) {if (error) {NSLog (@ "Error ..:% @", error); } And {[self update view]; }}]; }}
No comments:
Post a Comment