2 days ago · Tech · 0 comments

A few months ago, I was working on a project that needed to access the Facebook marketing API. It became clear very quickly that Facebook does not care about the developer experience. Every step felt like pulling teeth. It was marginally worse for Ruby developers, because the business SDK is auto-generated, un-monitored, and it turns out NOT FUNCTIONAL. The README says that this is how you update an object (and in case you're wondering, they're the ones with a mix of single and double quotes, not me): ad_account = FacebookAds::AdAccount.get('act_1234', 'name') ad_account.name = "New Ad Account" ad_account.save Sounds easy enough, very rails-esque, but when you try to use the object again you get this: FacebookAds::ClientError Syntax error "Field status specified more than once." Cool, uh, why? Fortunately, somebody had already tracked this down in an open issue. The problem is that some of the fields are stored as string attributes and others are stored as symbols and you can end up…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.