Facebook login with iOS SDK 4.0 -
i'm struggling upgrade sdk 4.0 ios. got login setup , working fine app invites (which main objective upgrade).
two issues remain:
previously resume current session on app start [fbsession openactivesessionwithreadpermissions:allowloginui:completionhandler]. method not available anymore , if call [fbsdkaccesstoken currentaccesstoken] nil. design or missing steps? clear, user logs in , gets accesstoken. after restart of app token lost , need login again app switch facebook. i'd avoid app switch if possible.
the app invite dialog presented fine fails when sending request. i'm using test user ios simulator. cannot see error message track issue. there limitations simulator or test user?
you should try adding in appdelegate didfinishlaunchingwithoptions :
return [[fbsdkapplicationdelegate sharedinstance] application:application didfinishlaunchingwithoptions:launchoptions];
this u [fbsdkaccesstoken currentaccesstoken] when user logged in.
refer : https://developers.facebook.com/docs/ios/getting-started#startcoding
Comments
Post a Comment