endre
endre

Reputation: 1373

Facebook graph api on appengine Invalid Request URL

I have a request to the fb graph api that goes like so:

https://graph.facebook.com/?access_token=<ACCESSTOKEN>&fields=id,name,email,installed&ids=<A LONG LONG LIST OF IDS>

If the number of ids goes above 200-ish in the request, the following things happen:

For number of ids below 200 or so , it works fine for all of them. Sure I could just slice the id list up and fetch them separately, but I would like to know why this is happening and what it means?

Upvotes: 0

Views: 653

Answers (1)

dragonx
dragonx

Reputation: 15143

I didn't read your question through the first time around. I didn't scroll the embedded code to the right to realize that you were using a long URL.

There's usually maximum URL lengths. This will prevent you from having a long HTTP GET request. The way to get around that is to embed the parameters in the data of a POST request.

It looks like FB's Graph API does support it, according to this question: using POST request on Facebook Graph API

Upvotes: 1

Related Questions