Facebook query language - long query

2019-06-05 00:08发布

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条回答
We Are One
2楼-- · 2019-06-05 00:52

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).

查看更多
登录 后发表回答