dubhaskar / facebook-actionscript-api

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

IOError 2032 #321

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
not entirely sure, as the issue isn't happening for me in particular.  I am 
writing an application for myself and some of my friends, it works fine for 
most of us, but there are 2 users that are getting an error of:[IOErrorEvent 
type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032" 
errorID=2032] when they are clicking on one of the buttons in my out-of browser 
app.

the button is making an fql query to the graph api as such: 
FacebookDesktop.fqlQuery("SELECT post_id, action_links, created_time, app_id 
FROM stream WHERE app_id=" + appID + " AND source_id in (SELECT uid1 FROM 
friend WHERE uid2=me()) LIMIT 1000",getLatestHandler);

What is the expected output? What do you see instead?
I am expecting and in most cases we are all getting the correct output of a 
list of all posts made by a specific application through our friends

works on most of our computers, but the ones that it doesn't work on are 
getting the IOError - [IOErrorEvent type="ioError" bubbles=false 
cancelable=false eventPhase=2 text="Error #2032" errorID=2032]

What version of the product are you using? On what operating system?
I am using GraphAPI_Desktop_1_6_1, with a trial of FlashBuilder 4.5.
They are all running with AIR 2.7.  I am on Windows 7, but the 2 that are 
having errors are both on MAC OS 10.6.7, however I have one user on MAC OS 
10.6.5 that isn't having this error.

Please provide any additional information below.

Original issue reported on code.google.com by brigeo...@gmail.com on 20 Jun 2011 at 6:08

GoogleCodeExporter commented 8 years ago
So the two users who are getting errors can successfully log on? Have you tried 
logging on to their computers with someone's account that works on another 
computer?

If it has something to do with internet connection, AIR has a URLMonitor class 
to monitor that:

import air.net.URLMonitor;
import flash.net.URLRequest;
import flash.net.URLRequestMethod;
import flash.events.StatusEvent;

var req : URLRequest = new URLRequest("http://www.facebook.com");
req.method = URLRequestMethod.HEAD;

var monitor:URLMonitor;
monitor = new URLMonitor(req);
monitor.pollInterval = 5000;
monitor.addEventListener(StatusEvent.STATUS, onNetworkStatus, false, 0, true);
monitor.start();

function onNetworkStatus(event:StatusEvent):void {
    trace("online:", monitor.available);
    var isOnline:Boolean = monitor.available;
}

Original comment by rovertn...@gmail.com on 22 Jun 2011 at 3:19

GoogleCodeExporter commented 8 years ago
yeah, the two users can successfully log on.  I'll have them check to see if 
they can log in with a different working username.

I have an HTML component on the window, and they can load and browse that with 
no problems, so i don't think it's a problem with internet connection.  My 
thoughts were that it is related to security settings on the MAC OS.

One of the users just built himself a new MAC, and will be installing an older 
version of MAC OS tonight to see if that works.

Original comment by brigeo...@gmail.com on 22 Jun 2011 at 3:49

GoogleCodeExporter commented 8 years ago
I was facing the same error, on windows xp. When i used the code

public function load():void {
            FacebookDesktop.api('/me/friends', handleFriendsLoad);
        }

        protected function handleFriendsLoad(response:Object, fail:Object):void {
            if (fail) { return }
            var friendsIds:Array = [];

            var friends:Array = response as Array;

            var l:uint=friends.length;
            for (var i:uint=0;i<l;i++) {
                friendsIds.push(friends[i].id);
            }

            //
            var appFriendsFQL:String='SELECT uid,name,pic_square,is_app_user FROM user WHERE uid IN (' + friendsIds.join(',') +') AND is_app_user="true"';
            FacebookDesktop.fqlQuery(appFriendsFQL,handleAppFriendsDataLoad);
        }

I found out its because of the url length problem of many browsers
http://www.boutell.com/newfaq/misc/urllength.html

as Air uses default browser of the OS to deal with url.

if you check FQL query URL by using 'trace(fail)' object you will see the URL 
generated by contain many characters than 'safe url length'.

Original comment by jasi...@gmail.com on 4 Jul 2011 at 3:32

GoogleCodeExporter commented 8 years ago
there is no way that my query is even coming close to these limits though...

"SELECT post_id, action_links, created_time, app_id FROM stream WHERE app_id=" 
+ appID + " AND source_id in (SELECT uid1 FROM friend WHERE uid2=me()) LIMIT 
1000"

where appID gets replaced with a single application ID

Original comment by brigeo...@gmail.com on 5 Jul 2011 at 3:35

GoogleCodeExporter commented 8 years ago
ok, this issue has been resolved...turns out somehow the extended permissions 
got removed, so my app didn't have read stream permissions as it clearly 
needs...

i don't know how to close it, but this issue can be closed

Original comment by brigeo...@gmail.com on 13 Jul 2011 at 1:35

GoogleCodeExporter commented 8 years ago

Original comment by rovertn...@gmail.com on 14 Jul 2011 at 10:50