Is there a limit on fql request length?

Since the fql request is part of the request URL (e.g. http://graph.facebook.com/fql?q=SELECT ...), I assume that there is a limit on the length of the URLs (or their parameters)?

+4
source share
1 answer

There is no documented or declared limit on the length of the FQL query itself, but there is a limit on the length of the query string (which differs from browsers and web servers, see Compatibility Issues ).

Remember that you do not need to use GET to run the request, and POST will work fine, avoiding the query string limitation.

BTW, if you use the SDK to issue FQL queries, you can manually specify the appropriate HTTP method

Using JS-SDK:

FB.api('/fql', {q:'FQL_QUERY'}, 'post', function(response){ // Handle results }); 

Using PHP-SDK:

 $response = $fb->api('/fql', 'post', array('q'=>'FQL_QUERY')); 
+6
source

Source: https://habr.com/ru/post/1435877/


All Articles