kennylerma / facebook-actionscript-api

Automatically exported from code.google.com/p/facebook-actionscript-api
0 stars 0 forks source link

FQLMultiQueryParser crashes in AIR app if user logs out of Facebook.com. #348

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Log into AIR app. Do NOT select "keep me logged in".
2. Log into Facebook.com with the same user.
3. Log user out of Facebook.com.
4. Do something in the AIR app that issues an fqlMultiQuery() call.

What is the expected output? What do you see instead?

I'd expect some meaningful error returned back either from Facebook or from the 
fqlMultiQuery() call. Instead, the app crashes with the error below:

ReferenceError: Error #1069: Property name not found on String and there is no 
default value.
    at com.facebook.graph.utils::FQLMultiQueryParser/parse()[C:\Users\MikeHunt\Work\facebookGraphApi\api\com\facebook\graph\utils\FQLMultiQueryParser.as:58]
    at com.facebook.graph.core::AbstractFacebook/handleRequestLoad()[C:\Users\MikeHunt\Work\facebookGraphApi\api\com\facebook\graph\core\AbstractFacebook.as:184]
    at com.facebook.graph.net::FacebookRequest/dispatchComplete()[C:\Users\MikeHunt\Work\facebookGraphApi\api\com\facebook\graph\net\FacebookRequest.as:423]
    at com.facebook.graph.net::FacebookRequest/handleDataLoad()[C:\Users\MikeHunt\Work\facebookGraphApi\api\com\facebook\graph\net\FacebookRequest.as:414]
    at com.facebook.graph.net::FacebookRequest/handleURLLoaderComplete()[C:\Users\MikeHunt\Work\facebookGraphApi\api\com\facebook\graph\net\FacebookRequest.as:392]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()

What version of the product are you using? On what operating system?

1.6.1 on Mac OS 10.6.7.

Please provide any additional information below.

fqlMultiQuery seems to also crash when one of the queries in the batch fails 
due to an object missing. For example, if searching for posts made by people 
belonging to a friendlist, where the frienlist has been deleted on 
Facebook.com, but that still hasn't been registered by the app.

Related to the original problem, is there a way to check whether the current 
user is still logged in?

Original issue reported on code.google.com by n...@mail.sidebark.com on 6 Sep 2011 at 9:10

GoogleCodeExporter commented 9 years ago
While reproducing this problem today, I saw this error returned from Facebook, 
probably from one of the fqlQueries (NOT multi query): Error validating access 
token: Session has expired at unix time 1315306800. The current unix time is 
1315330727.

This confirms that there is a session expiration problem. But why i 
fqlMultiQuery crashing?...

Original comment by n...@mail.sidebark.com on 6 Sep 2011 at 5:45

GoogleCodeExporter commented 9 years ago
The uncaught ReferenceError should be fixed in the latest api, 1.7

Original comment by edwar...@gmail.com on 16 Sep 2011 at 4:19