FBSDK(新的Facebook SDK 4.0)实施不适用于使用Facebook登录 [英] FBSDK (New Facebook SDK 4.0) Implementation is not working for Login with Facebook

查看:128
本文介绍了FBSDK(新的Facebook SDK 4.0)实施不适用于使用Facebook登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Facebook Developer 中提到的以下块。但是,当应用回调来自浏览器时,它始终会返回已取消结果。

I am using this following block which is mentioned in Facebook Developer. But when my App callbacks from Browser then it is always returning Cancelled result.

FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
[login logInWithReadPermissions:@[@"email"]     
        handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) {
  if (error) {
        // Process error
   }
  else if (result.isCancelled) {
        // Handle cancellations
   }
   else {
       // If you ask for multiple permissions at once, you
       // should check if specific permissions missing
       if ([result.grantedPermissions containsObject:@"email"]) {
        // Do work
       }
  }
 }];




此更新于3月25日发布,


如果有人使用过这个,那么请与我分享。

If anyone used this then please share it with me.

参考: https://developers.facebook.com/docs/ios/getting-started

推荐答案


你无法从Facebook登录获得电子邮件ID ....为什么???

You cant get Email id from Facebook Login....why???



如果您的Facebook帐户使用手机号码注册,而您在同一帐户中没有电子邮件。



检查此方案。这可能会发生,我们不能将其归咎于 FBSDK

希望这会清除一些点。

这篇关于FBSDK(新的Facebook SDK 4.0)实施不适用于使用Facebook登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆