All Versions
42
Latest Version
Avg Release Cycle
146 days
Latest Release
1682 days ago

Changelog History
Page 1

  • v3.0.0 Changes

    March 17, 2017

    โฌ†๏ธ Most users should not see any difference upgrading from 2.x to 3.0. Most of the changes are internal to how requests go from a graph method (like get_connections) through the API to the โฌ†๏ธ HTTP layer and back. If you're not using API#api or HTTPService.make_request directly, upgrading should (in theory) require no code changes. (Let me know if you run into any issues.)

    Key breaking changes:

    • ๐Ÿ’Ž Koala now requires Ruby 2.1+ (or equivalent for JRuby, etc.)
    • API#api now returns a Koala::HTTPService::Response object; graph_call handles further processing
    • GraphBatchAPI no longer inherits from API (the interface is otherwise unchanged)
    • ๐Ÿ“œ Empty response bodies in batch API calls will raise a JSON::ParserError rather than returning nil
    • HTTPService.make_request now requires an HTTPService::Request object (Koala.make_request does not)
    • HTTPService behavior should not change, but in edge cases might. (If so, please let me know.)
    • API#search now requires a "type"/:type argument, matching Facebook's behavior (improving their cryptic error message)

    ๐Ÿ†• New features:

    • ๐Ÿ‘€ Koala now supports global configuration for tokens, secrets, etc! See the readme.
    • GraphCollection now exposes #headers, allowing access to etag/rate limiting/etc. info (thanks, pawandubey and jessieay!) (#589)

    โšก๏ธ Updated features:

    • ๐Ÿ”ง Koala.config now uses a dedicated Koala::Configuration object
    • โœ… TestUser#befriend will provide the appsecret_proof if a secret is set (thanks, kwasimensah!)
    • API#search now requires an object type parameter to be included, matching Facebook's API (#575)
    • โšก๏ธ RealtimeUpdates will now only fetch the app access token if necessary, avoiding unnecessary calls

    โœ‚ Removed features:

    • โœ‚ Removed support for the Rest API, since Facebook removed support for it (#568)
    • โœ‚ Removed support for FQL, which Facebook removed on August 8, 2016 (#569)
    • โœ‚ Removed legacy duplication of serveral constants in the Koala module (#569)
    • Removed API#get_comments_for_urls, which pointed to a no-longer-extant endpoint(#570)

    Internal improvements:

    • Completely rewrote HTTPService.make_request and several others, extracting most logic into HTTPService::Request (#566)
    • API#api now returns a Koala::HTTPService::Response object (#584)
    • GraphBatchAPI no longer inherits from API (#580)
    • โ™ป๏ธ GraphBatchAPI has been refactored to be simpler and more readable (thanks, acuppy!) (#551)
    • ๐Ÿ“œ Use the more secure JSON.parse instead of JSON.load (thanks, lautis!) (#567)
    • ๐Ÿšš Use JSON's quirks_mode option to remove hacky JSON hack (#573 -- thanks sakuro for the suggestion!)
    • The gemspec now allows both JSON 1.8 and 2.0 (#596) (thanks, pawandubey!)
    • โœ‚ Remove Autotest and Guard references (no longer used/needed)

    โœ… Testing improvements:

    • ๐Ÿ›  Fixed a bunch of failing mocked specs

    Others:

    • โž• Added an issue and pull request template
    • โšก๏ธ Updated Code of Conduct to 1.4
  • v2.5.0 Changes

    February 17, 2017

    ๐Ÿ†• New features:

    • API#get_object_metadata provides a convenient accessor to an object's graph metadata (thanks, sancopanco!)

    ๐Ÿ“š Documentation improvements:

    • โž• Add explicit require to examples in readme.md (thanks, dwkns!)

    Internal improvements:

    • โœ‚ Remove MultiJson dependency (thanks, sakuro!)
  • v2.4.0 Changes

    July 08, 2016

    Note: Koala is no longer officially supported on Ruby 1.9.3 (which was end-of-lifed back in ๐Ÿ’Ž 2015). Versions may โœ… still work (until version 3.0, when we may start using keyword arguments), but will not be tested on 1.9.3.

    โšก๏ธ Updated features:

    • Batch API requests will now properly calculate appsecret_proofs for multiple access tokens (thanks, mwpastore!)

    Internal improvements:

    • Koala now explicitly depends on MultiJson >= 1.3.0, since it uses methods introduced in that version

    โœ… Testing improvements:

    • โœ… Test Koala against Ruby 2.3.0 (thanks, thedrow!)
  • v2.3.0 Changes

    April 10, 2016

    โšก๏ธ Updated features:

    • ๐Ÿ‘‰ API#get_user_picture_data is now API#get_picture_data. The old method and API#get_picture both remain with deprecation warnings. (Thanks noahsilas for earlier work on this!)
    • Koala::Facebook::APIError now includes debug and trace info provided by Facebook in the headers (thanks, @elhu!)

    Internal Improvements:

    • Graph API error handling is now done via the GraphErrorChecker class

    โœ… Testing improvements:

    • โฌ†๏ธ Upgraded RSpec to 3.3.0
    • โœ‚ Removed pended specs that were no longer relevant
    • ๐Ÿ‘Œ Improved https regex in test suite (thanks, lucaskds!)
  • v2.2.0 Changes

    August 11, 2015

    โšก๏ธ Updated features:

    • โช Restore API#search, since Facebook still supports that for certain usecases (thanks, vhoof!)
    • You can now specify format: :json in http_options to make Content-Type application/json requests (thanks, adparlor!)
    • ๐Ÿ‘ Koala now supports uploading videos by URL (thanks, filipegiusti!)
    • GraphCollections now offer direct access to the collection summary data via #summary (thanks, vhoof!)

    Internal Improvements:

    • ๐Ÿ‘€ Use MultiJson::LoadError instead of the newer ParseError for backward compatibility (thanks, bunshin!)

    ๐Ÿ“š Documentation improvements:

    • modernize the hash syntax in the readme (thanks, st0012!)
  • v2.1.0 Changes

    ๐Ÿ“š Documentation improvements:

    • extend/clean up code quality badges (thanks, jbender!)
  • v2.0.0 Changes

    โ™ป๏ธ Koala 2.0 is not a major refactor, but rather a set of small, mostly internal โ™ป๏ธ refactors:

    • BatchAPI now reads both access token and app secret from the original API instance (thanks, lukeasrodgers!)
    • โœ‚ Remove legacy interfaces (deprecated since 1.2)
      • API#search (which Facebook doesn't support anymore)
      • TestUser#graph_api and RealtimeUpdates#graph_api (use #api instead)
      • Various HTTP options (see diff for deprecation warnings/upgrade instructions for each method)
      • NetHTTPService and TyphoeusHTTPService (see diff for deprecation warnings/upgrade instructions)
      • OAuth methods for dealing with session tokens (which Facebook stopped providing)
      • OAuth#get_user_from_cookies (use get_user_info_from_cookies instead)
    • Blocks passed to API#get_picture will work in the batch API (thanks, cwhetung!)
    • ๐Ÿ‘‰ Added API#get_user_picture_data to get data about a picture (thanks, morgoth!)

    Other changes:

    • โœ… Test against modern Ruby versions on Travis (thanks, nicolasleger!)
    • ๐Ÿ— Speed up Travis builds (thanks, morgoth!)
  • v1.11.1 Changes

    ๐Ÿ› Bug fixes:

    • Properly import Facebook error attributes (thanks, isra17!)
  • v1.11.0 Changes

    โšก๏ธ Updated features:

    • ๐Ÿ‘ OAuth now supports decoding the new JSON responses from the access token endpoints (thanks, ridiculous!)
    • Batch API now accepts either symbols or strings for the access token (thanks, mattmueller!)
    • Incorporate user message and title into error handling (thanks, richrines and isra17!)

    ๐Ÿ› Bug fixes:

    • ๐Ÿ›  Fixed bug in GraphCollection URL versioning (thanks, deviousdodo and jankowy!)
    • โœ… TestUsers#create_network now properly handles options (thanks, crx!)

    ๐Ÿ“š Documentation improvements:

    • โšก๏ธ Updated gem version (thanks, thomasklemm!)
  • v1.10.1 Changes

    ๐Ÿ› Bug fixes:

    • Facebook API version now works in all cases (thanks, markprzepiora!)
    • ๐Ÿ›  Fixed a typo in an example (thanks, mktakuya!)