简体   繁体   English

强制Facebook电子邮件和user_friends权限

[英]Force Facebook email and user_friends permissions

How to set user_friends and email permissions as Required , like Tinder. 如何设置user_friendsemail的权限要求 ,像火种。

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. Tinder仍在使用v1.0应用程序,您无法在较新的应用程序中使用v1.0,它将在2015年4月之后升级到v2.0。

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

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

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