This PR adds ETag support. Example of usage:
$facebook = ...
$query = '/zuck';
// Get ETag for a query
$result = $facebook->api($query);
$etag = $facebook->getReceivedETag();
// Check if something has changed
// ETag has not changed
// ETag has changed, save new:
$new_etag = $facebook->getReceivedETag();
PS. Test case added in tests/tests.php (testETags).
Sorry it took so long to respond to this. Can you sign the Contributor License Agreement? https://developers.facebook.com/opensource/cla
At this time, there are merge conflicts. Would you be willing to update this for the current master?
Thanks for your contribution.
Fixed to be up to date with facebook:master and signed the Contributor License Agreement.
Really appreciate your work here, and like the idea. This is a sizable enough addition that we'd like to thoroughly design and develop the feature in-house, preferably after some other modernization releases. This will be tracked by issue #105.