You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
please forgive me if this has been addressed or covered elsewhere.
when encountering API limits, or other requests that result in a non-successful response, FB sometimes provides useful information in the response headers. in our specific case, we occasionally receive
but of course since the request method only returns the response object on is_success(), we cannot access that header.
of course i recognize that this is a complex issue from the perspective of the interface that you provide to the FB API, and that indicating failure while still providing access to structured data is not a straight-forward endeavor. my only thoughts as to possible approaches are the method used by DBI where additional error information is available through object and class variables
$dbh = DBI->connect($data_source, $username, $password)
or die $DBI::errstr;
$dbh->commit or die $dbh->errstr;
thanks in advance for your consideration, and please let me know if i need to mock up a proper pull request, or provide further clarification.
The text was updated successfully, but these errors were encountered:
i know that this is a very old request, but i was just circling back to an internal ticket that depends on this and thought to check to see what you had discovered.
please forgive me if this has been addressed or covered elsewhere.
when encountering API limits, or other requests that result in a non-successful response, FB sometimes provides useful information in the response headers. in our specific case, we occasionally receive
there should be a response header 'x-app-usage' that allows us to determine which limit we have exceeded
but of course since the request method only returns the response object on is_success(), we cannot access that header.
of course i recognize that this is a complex issue from the perspective of the interface that you provide to the FB API, and that indicating failure while still providing access to structured data is not a straight-forward endeavor. my only thoughts as to possible approaches are the method used by DBI where additional error information is available through object and class variables
thanks in advance for your consideration, and please let me know if i need to mock up a proper pull request, or provide further clarification.
The text was updated successfully, but these errors were encountered: