1

I am using FBLoginView in my iphone app for login mechanism. Login and logout functionality is working as expected. For the first time when I click login, It asks for permission-"App would like to access your basic profile info etc. etc." I allow ok, it logs me in. The questions are:

-Why does it not ever prompt me to enter facebook username password? How does it know who to log me in as? I don't have facebook app even installed on my iphone. How does it manage to log me in correctly. Please help me if you know how this might be working.

Here is the code I have used: CGRect loginFrame=CGRectMake(MARGIN,currentFrame.size.height-LOGINBUTTONHEIGHT,50 , 20);//width, height don't matter FBLoginView1 = [[FBLoginView alloc] init]; FBLoginView1.readPermissions = @[@"email", @"basic_info", @"user_location", @"user_birthday", @"user_likes"];

FBLoginView1.frame = loginFrame;
FBLoginView1.delegate = self;//(id<FBLoginViewDelegate>)[theDelegate shopViewCtrl];
[[self view] addSubview:FBLoginView1];

[FBLoginView1 sizeToFit];

I have also implemented following functions: - (void)loginView:(FBLoginView *)loginView handleError:(NSError *)error - (void)loginViewFetchedUserInfo:(FBLoginView *)loginView user:(id)user

4

1 回答 1

0

好的。所以,我终于为自己揭开了它的神秘面纱。FBLoginView 从 iPhone 上的“设置”应用程序中获取用户名和密码。如果我在 facebook 上更改密码,FLoginView 错误处理程序会通知我进行设置,点击 Facebook,然后更改密码。如果其他人有这个问题并且想知道发生了什么,只需在此处发布答案。

于 2013-11-11T22:29:26.100 回答