iOS Facebook登录教程
如何将所有版本的Facebook登录整合到iOS应用程序中 我已经连续搜索了谷歌和GitHub几个小时,没有找到一个完整的解决方案。我还阅读了Facebook上的所有文档,并剖析了ios Facebook示例代码。我有一个>=iOS6的工作版本,但是下面的任何东西都会崩溃(ACAccountStore不存在)。目前我正在使用一个名为LBFacebook的库登录。唯一的缺点是,它同样不适用于iOS5iOS Facebook登录教程,ios,facebook,facebook-graph-api,facebook-sdk-3.0,acaccountstore,Ios,Facebook,Facebook Graph Api,Facebook Sdk 3.0,Acaccountstore,如何将所有版本的Facebook登录整合到iOS应用程序中 我已经连续搜索了谷歌和GitHub几个小时,没有找到一个完整的解决方案。我还阅读了Facebook上的所有文档,并剖析了ios Facebook示例代码。我有一个>=iOS6的工作版本,但是下面的任何东西都会崩溃(ACAccountStore不存在)。目前我正在使用一个名为LBFacebook的库登录。唯一的缺点是,它同样不适用于iOS5 我在拔头发。FacebookSDK每两周更换一次。让它一劳永逸地工作将是奇迹。Facebook S
我在拔头发。FacebookSDK每两周更换一次。让它一劳永逸地工作将是奇迹。Facebook SDK 3.1是向后兼容的。它尝试按以下顺序进行身份验证:
有关完整教程,请参见。什么的“所有版本”?网间网操作系统?脸谱网?所有iPhone都发货了吗?谢谢!我终于能够让它启动并运行了。这一切都取决于FBLoginView,它直到我清理了项目才出现。
NSString *strName= @"Mohit Thatai";
FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
[login
logInWithReadPermissions: @[@"public_profile", @"email"]
handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) {
if (error)
{
NSLog(@"Error");
}
else if (result.isCancelled)
{
NSLog(@"Cancell");
}
else
{
NSLog(@"Login Sucessfull");
// Share link text on face book
FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];
[content setContentTitle:@"GPS Tracker"];
[content setContentDescription:[NSString stringWithFormat:@"%@ shared an interesting link\n This might be interesting to you: GPS Tracker for Kids",strName]];
content.contentURL = [NSURL URLWithString:[NSString stringWithFormat:@"http://gpsphonetrackerkids.com"]];
[FBSDKShareDialog showFromViewController:self
withContent:content
delegate:nil];
}
}];