Facebook iOS SDK - open session and request read permissions -
i'm using
(void)openwithbehavior:(fbsessionloginbehavior)behavior completionhandler:(fbsessionstatehandler)handler to open session, works fine. after open, read permissions with:
(void)requestnewreadpermissions:(nsarray*)readpermissions completionhandler:(fbsessionrequestpermissionresulthandler)handler this works fine, users signing in through mobile safari (or facebook ios app, haven't tested), users jumped , forth twice (tap login in app, jump mobile safari, log in there, jump app, jump mobile safari, approve permissions, jump app.
returning users - have signed out of app (and token removed), double-jump - each time mobile safari tells user they've approved app.
i'm using openwithbehavior because prioritize native ios login using fbsessionloginbehaviorusesystemaccountifpresent. don't see version of combined initial permissions request (such openactivesessionwithreadpermissions...).
i hoping that, subsequent logins, permissions known via session.permissions in testing value null until requestnewreadpermissions called.
is possible remove double-jump either or both scenarios (first user login, subsequent user login) yet still achieve same permissions?
you can "init" session read permissions calling initwithpermissions: method. call openwithbehavior:completionhandler: 1 open call permissions you've set.
Comments
Post a Comment