Facebook query language - long query

送分小仙女□ 提交于 2019-12-08 04:00:38

问题


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



来源:https://stackoverflow.com/questions/8490124/facebook-query-language-long-query

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!