Calls to Facebook take time. Sometimes they take painfully large amounts of time. Even when Facebook is having a good day, the latency of each HTTP request quickly becomes unreasonable if you need to fetch several pieces of data.
Fortunately, Facebook provides mechanisms which allow you to combine several requests into a single call. Unfortunately, the mechanisms are quirky, poorly documented, and interfere with the normal flow of your program code.
BatchFB solves this problem by letting you make numerous requests and queries in a natural syntax, then automatically optimizing them down to the minimum number of Facebook calls. You don't need to worry about multiquery or the Batch Graph API; the library handles this for you.
BatchFB future-proofs your code. If Facebook implements additional batching facilities, a new version of batchfb can add these optimizations without you having to recompile your code.
What's New in This Release:
· Request.setName() can now be chained
· Fixed a bug causing all exceptions to be the base FacebookException instead of the proper exception wrapper
· Better handling of 'null' in result from FB
· More detailed logging of http calls
· Improved a couple test cases
· POST now properly indicates utf-8 charset
· Detects some cases where facebook is broken and throws BrokenFacebookException
· Added method RequestBuilder.addHeader()