facebook-sdk
facebook-sdk copied to clipboard
Fix JSONDecodeError encountered in put_object
put_object endpoint returns "Sorry, this content isn't available right now" which is cannot be decoded to JSON.
I feel like this could be problematic, it should be left up to the user to handle unsuccessful requests. The solution here would be raising a GraphAPIError with a more useful message rather than just returning the string itself