Facebook.Utility.FacebookException: This API call could not be completed due to resource limits / _facebookAPI.Events.GetMembers(eid);

Jul 19, 2010 at 7:47 PM
Urgent.. please help. Why there is this Facebook.Utility.FacebookException: This API call could not be completed due to resource limits when calling _facebookAPI.Events.GetMembers(eid); Is there any workaround? My event has 5000+ users.
Jul 21, 2010 at 10:17 AM
You answered it yourself. Retrieving 5000 user IDs is too much. Try to use FQL or Graph where you can impose limits instead and fetch the members piecewise.
Jul 26, 2010 at 8:07 AM
is there any code sample how to check if user belongs to event? I could enumerate users by ID ?
Jul 28, 2010 at 5:26 PM

I am having the same issue with an API call to Friends.GetUserObjects - if the user has a lot of friends it errors out due to resource limits. 

I don't know what the limit is, but I was trying this with someone who had about 1800 friends and it could not retrieve the friends list.

That makes it hard to use the API if someone trying to use your app has many friends.  

Jul 29, 2010 at 2:25 PM

You could give the facebookgraphtoolkit.codeplex.com a try. It is pretty simple to accomplish what you are working on.

 

FacebookApp app = new FacebookApp("my_access_token");
// Results 0-100
dynamic result1 = app.Api("/eventId/attending?limit=100&offset=0");
var name = result1.data[0].name;

// Results 100-200
dynamic result2 = app.Api("/eventId/attending?limit=100&offset=100");
var name = result2.data[0].name;

Aug 3, 2010 at 12:09 PM

thanks but it seems to require VS 2010.

 

I have only 2008, is there a tweak to adjust this  old toolkit to get data by offset?

 

Sep 3, 2010 at 1:49 PM

FYI, the facebookgraphtoolkit.codeplex.com now supports .net 3.5.