简体   繁体   中英

Publish permission returns “installed” and “public_profile” as requested permission

I requested @"publish_stream",@"publish_checkins" permissions. But when I print the active session's permissions, It displays "installed", "public_profile" as requested permissions. Thus I am unable to use below condition and it opens login screen again on active session.

if([[[FBSession activeSession] permissions] indexOfObject:@"publish_stream"] == NSNotFound || [[[FBSession activeSession] permissions] indexOfObject:@"publish_checkins"] == NSNotFound)   

This was observed in facebook sdk 3.14.0. I was using facebook sdk 3.7.1 which works just fine.

What am I doing wrong and How could I resolve this.

Thanks.

If your app was registered after April 30th 2014, you're using Graph API v2.0. To use non-basic permission with non-admin users, you'll need to get your app reviewed by facebook.

Have a look at my answer here: Facebook email permission ios

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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