Facebook query language - long query

2019-06-05 00:23发布

问题:

I need to run quite long query using FQL. The only way I found in facebook docs is passing it using GET method. Unfortunetely as far as I know, most web servers doesn't accept urls beyond some specified length.

So the question is - what's the max url length facebook can handle? Is there any way to send the FQL query via POST so the limit can be avoided?

回答1:

At the front end, Facebook servers run a LAMP (Linux, Apache, MySQL, and PHP) stack with Memcache (source: see here) With the Apache your url length limits to approximately 4,000 characters. However the Internet Explorer can handle only up to 2,083 characters before throwing an error message (source: see here).

If you want to get sure whether your query works, you need to test it in the test console (scroll down a little).