简体   繁体   English

Facebook登录要求安装(iPhone)

[英]Facebook Login ask to install (iPhone)

I need help in the facebook login from Facebook-SDK-3.1 for iOS 6.I have used all the code of the Facebook sdk sample code sessionLoginSample ,I have used the WebView opening code in this and whenever i login from the new id ...it takes me to the below image link to install in my project .dont know what exactly it is...and if i do so and after that logout from the code ..and when I again press button to login , it automatically log-in without asking for the id and pssword``login page . 我需要帮助Facebook登录Facebook-SDK-3.1 for iOS 6.我已经使用了Facebook sdk示例代码sessionLoginSample所有代码,我已经使用了WebView开放代码,每当我从新的id登录时.. .it带我到下面的图片链接install在我的project不知道究竟是什么...如果我这样做,并从代码logout后...当我再次按下按钮登录时,它会自动log-in没有要求id and pssword``login page and again again it automatically logs-in , even after logout./.can anyone help me why after being logout it ask stores the previous access token and password. 并再次自动登录,即使在注销后./.can任何人都帮助我,为什么在注销后它会询问商店以前的访问令牌和密码。

and code is 代码

- (IBAction)buttonClickHandler:(id)sender {

AppDelegate* appDelegate = [[UIApplication sharedApplication]delegate];


if (appDelegate.session.isOpen) {

  [appDelegate.session closeAndClearTokenInformation];

} else {
    if (appDelegate.session.state != FBSessionStateCreated) {

         appDelegate.session = [[FBSession alloc] initWithPermissions:[NSArray arrayWithObjects:@"email", nil]];
    }


    [appDelegate.session openWithBehavior:FBSessionLoginBehaviorForcingWebView

                            completionHandler:^(FBSession *session,

                                                FBSessionState state,

                                                NSError *error) {

                FBSession.activeSession = session;



                                [self updateView];
                                NSLog(@" state=%d",state);

                                [FBRequestConnection
                                 startForMeWithCompletionHandler:^(FBRequestConnection *connection,
                                                                   id<FBGraphUser> user,
                                                                   NSError *error) {

                                     userInfo = @"";


                                     userInfo = user.username;

                                     NSLog(@"string %@", userInfo); 
                                         [self checkfacebook];





                                 }];


                            }];    } 


}

在此输入图像描述

FB grants access to your app once the user logs in . 一旦用户登录,FB就授予对您的应用程序的访问权限。 If the user wants to modify the privileges he can do it by loggin into fb and changing permissions. 如果用户想要修改权限,他可以通过登录到fb并更改权限来执行此操作。 You might want to look into oAuth for further details. 您可能需要查看oAuth以获取更多详细信息。

当你通过新的emailid登录时,它必须为他们安装你的应用程序...所以,它要求不同的登录...但是你再次登录它不会问...你的第二个问题的答案是......你在服务器端做某事...... bcoz服务器上可能有一个条款记住用户几小时或几天...所以,请检查服务器端..如果不使用服务器...回复我回来我会尝试进一步回答......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM