6

Facebook openActiveSessionWithReadPermission reaches too fast execution with sta...

 2 years ago
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

advertisements
[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

I have designed a simple simulink and stateflow diagrams on Matlab. It works perfectly! But I have two issues: 1) The model runs too fast. The transition time between two states are amazingly fast that I can not see. I tried to change some parameters

Functions too fast? So they are skipped?

With a function a div-popover gets called and filled with dynamic data using Ajax, PHP, MySQL and some HTML/CSS. All goes fine. When I want to delete an entry in the list just popped over it functions as it should. When I send an update request for m

UDP transfer is too fast, Apache Mina does not handle it

We decided to use UDP to send a lot of data like coordinates between: client [C++] (using poll) server [JAVA] [Apache MINA] My datagrams are only 512 Bytes max to avoid as possible the fragmentation during the transfer. Each datagram has a header I a

Call App.store.commit () too fast in Ember

In my application I have a list of items, and a button to delete the last one. Then on my controller I wrote the following action: removeLastItem: -> lastItem = current_order.get('items').get('lastObject') lastItem.deleteRecord() App.store.commit() M

The Upstart script exported by Foreman does not work properly, reappearing too fast

The only error I could find out was looking at dmesg [ 603.598951] init: thx4-web-1 main process ended, respawning [ 603.607935] init: thx4-web-1 main process (3901) terminated with status 127 [ 603.607988] init: thx4-web-1 main process ended, respaw

Selenium tests run too fast, not waiting for the radio button to be selected

I have a Selenium Grid and WebDriver 2.48.2 test that runs too fast. The majority of the time the test stops because a radio button isn't selected prior to a button being pressed. The radio buttons are setup using JavaScript based on a JSON file to c

Jquery fadein 'slow' is too fast

i'm using the jquery fadein fadeout with the slow option, but it's still a little too fast for me. now i've read that you can only choose between fast and slow, but is there a way to make it slower?You have two options. The first is to use a number o

Obtain the block of commands that must be executed in the with statement

In reading the specifications for the with statement (link), I have some things I'd like to play around with. This isn't for any production code or anything, I'm just exploring, so please don't be too harsh if this is a bad idea. What I'd like to do

Loop with state - segmentation fault

I am doing a project on particle dynamics and I started by letting a particle (a sphere) fall from a certain height towards a fixed particle in the ground. Inside a do loop (a time loop, from the initial time to a certain time elapsed with a certain

MJPEG video of the IP camera too fast

I'm just trying to read a video Stream out of an IP Camera (Basler BIP-1280c). The stream I want to have is saved in a buffer on the camera, has a length of 40 seconds and is decoded in MJPEG. Now if I access the stream via my webbrowser it shows me

Selenium 2.0rc3 click function too fast?

First off, sorry for the cryptic question. My team is currently using Selenium 2.0rc3 (with python) for testing our web app with chrome. When we used the 2.02b version of Selenium, our test passed (it was a little slow and we had small hacks that we

mysql ended with state 1?

This morning I noticed that my mysql server was not running. A look at the logs and I found the information below. While it is troubling that the mysqld service ran out of memory and was killed, it is more troubling that mysql could not restart. Any

Xcode running & ldquo; too fast & rdquo;

I have a problem with my code running through the options "too fast" within my Xcode project (when testing on my iPhone). I have two buttons that control changing an amount of milk from regular [default option] down to light or up to extra. When

Neo4j too many clauses WITH - is this a good practice?

Everyone, I have used Neo4j 2.2.3 to model a vehicle selling scenario. The structure of graph in brief is as follow: Every vehicle is a node with label VEHICLE and have the following properties Price Mileage Manufacture year Everything else related t

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK