![](/style/images/good.png)
![](/style/images/bad.png)
Facebook openActiveSessionWithReadPermission reaches too fast execution with sta...
source link: https://www.codesd.com/item/facebook-openactivesessionwithreadpermission-reaches-too-fast-execution-with-state-failure.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Facebook openActiveSessionWithReadPermission reaches too fast execution with state failure
[FBSession openActiveSessionWithReadPermissions:nil
allowLoginUI:YES
completionHandler:
^(FBSession *session,
FBSessionState state, NSError *error) {
[self sessionStateChanged:session state:state error:error];
}];
Well, after a while an alert show us saying that my application tries to access facebook and ask whether it's allowed or not.
However, that alert shows up AFTER completion handler is reached.
State is already FBSessionStateClosedLoginFailed by that time.
What should I do? Works fine in simulator.
Actually scrumptious sample in face book also fail on my iPhone. But I have facebook apps installed and logged in.
I got this fixed by going to settings and enable facebook on my apps. Do not know why it's set off in the first place.
Related Articles
My simple simulink model works too fast
Functions too fast? So they are skipped?
UDP transfer is too fast, Apache Mina does not handle it
Call App.store.commit () too fast in Ember
The Upstart script exported by Foreman does not work properly, reappearing too fast
Selenium tests run too fast, not waiting for the radio button to be selected
Jquery fadein 'slow' is too fast
Obtain the block of commands that must be executed in the with statement
Loop with state - segmentation fault
MJPEG video of the IP camera too fast
Selenium 2.0rc3 click function too fast?
mysql ended with state 1?
Xcode running & ldquo; too fast & rdquo;
Neo4j too many clauses WITH - is this a good practice?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK