Search code examples
iphoneobjective-cfacebookloginview

Facebook SDK: FBLoginView reauthorizating for publish stream


I have a problem of reauthorizating the publish stream after calling the initWithReadPermission when using FBLoginView. I try to call inside the delegate function where i can get the user information. After the next dialog asking for publish stream permission, the application threw me an exception saying

"'com.facebook.sdk:InvalidOperationException', reason: 'FBSession: It is not valid to reauthorize while a previous reauthorize call has not yet completed.' "

I need to call after the read permission but how to prevent this problem?


Solution

  • According to your error the FBSession is not opened. so you should check if the session is

    opened before trying to reauthorize.