DEV Community

Discussion on: [Rant] Facebook API: avoid at all costs

Collapse
 
thinkjrs profile image
Jason R. Stevens, CFA

To also /rant and pile on here: their Python client facebook-business API just might qualify for the ugliest client library ever. I'd be nicer if nearly all of the underlying business's profits weren't generated this API.

Typical garbage "C" programmed in the Python language. I think there's few things that set off a Python dev more than that. Oh, yes, please provide me a getter for a static attribute without using properties. It's ridiculous incompetence.

Further, doing it right, and in a reasonably Pythonic style, would take a decent team just a weekend. It's not all that big an api considering the repetitious boilerplate throughout. However, maintaining that lib versus their "graph" REST api would need an entire army's attention, day and night!

What a sham.

If you're from the future and planning to use the facebook-business client api in Python, don't. Grab the HTTP params and do what you need to manually in requests.