What steps will reproduce the problem?
1. Use FriendsList_flash example as a web version in IE (changing
"FacebookDesktop" to "Facebook")
What is the expected output? What do you see instead?
Expected to see the friends results. However, if user has 250+ friends, fql
query function will fail but never hit call back function
What version of the product are you using? On what operating system?
Latest version, on IE8 on Windows XP
Please provide any additional information below.
I'm writing this issue to help anyone struggling with this. The Flash example
is basically adding the entire list of all friends ids in the fql query, which
if the user has 250+ friends, it will hit the max character URL limit in IE
browsers. Basically the query string is way too long and not an optimal way to
get the data.
I provided the solution here:
// call /me/ instead of /me/friends/
Facebook.api('/me/', getAppFriends);
private function getAppFriends( response:Object, fail:Object ):void
{
var friendsFQL:String = "SELECT uid, name, pic_square " + "FROM user " + "WHERE uid IN " + "(SELECT uid2 FROM friend WHERE uid1=" + response.id + ")";
Facebook.fqlQuery(friendsFQL, onGetAppFriends);
}
private function onGetAppFriends( response:Object, fail:Object ):void
{
// can use same code as FriendsList_flash to loop through data response
}
Original issue reported on code.google.com by ceasetod...@gmail.com on 2 Nov 2011 at 4:08
Original issue reported on code.google.com by
ceasetod...@gmail.com
on 2 Nov 2011 at 4:08