Closed GoogleCodeExporter closed 9 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
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
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
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
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
Original comment by rovertn...@gmail.com
on 14 Jul 2011 at 10:50
Original issue reported on code.google.com by
brigeo...@gmail.com
on 20 Jun 2011 at 6:08