强制Facebook电子邮件和user_friends权限 [英] Force Facebook email and user_friends permissions

查看:730
本文介绍了强制Facebook电子邮件和user_friends权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如Tinder所示,如何将 user_friends 电子邮件权限设置为必需 / p>

Tinder权限:





我的权限:





我打开我的会话:

  [FBSession openActiveSessionWithReadPermissions:@ [@public_profile,@email,@user_friends ] allowLoginUI:NO completionHandler:^(FBSession * session,FBSessionState state,NSError * error){}]; 


解决方案

您不能强制使用权限。 Tinder仍在使用v1.0应用程序,您不能在较新的App中使用v1.0,并将在2015年4月之后升级到v2.0。



您只能检查用户以后是否授权特定权限,使用 / me / permissions 端点: https://developers.facebook.com/docs/graph-api/reference/v2.2/user/permissions


How to set user_friends and email permissions as Required, like Tinder.

Tinder Permissions:

My Permissions:

I open my session with this:

[FBSession openActiveSessionWithReadPermissions:@[@"public_profile", @"email", @"user_friends"] allowLoginUI:NO completionHandler:^(FBSession *session, FBSessionState state, NSError *error) {}];

解决方案

You can´t force permissions anymore. Tinder is still using a v1.0 App, you can´t use v1.0 in a newer App and it will be upgraded to v2.0 after April 2015.

You can only check if the user authorized specific permissions later, with the /me/permissions endpoint: https://developers.facebook.com/docs/graph-api/reference/v2.2/user/permissions

这篇关于强制Facebook电子邮件和user_friends权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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