News for hackers. Stuff that matters.
Re:Facebook quietly deprecated their Python/Ruby libraries f... by cowholio4 on Friday April 08, 2016 @06:51PM (#11458739)
As a user of the gem I can say it was effectively deprecated over a year ago. I ended up just writing my own requests to do what I needed to do.

But at least they now give you a notice. :)

Re:Facebook quietly deprecated their Python/Ruby libraries f... by minimaxir on Friday April 08, 2016 @07:03PM (#11458800)
And the API end points are well-documented so it's not a big deal.
Re:Facebook quietly deprecated their Python/Ruby libraries f... by petetnt on Friday April 08, 2016 @07:14PM (#11458881)
I wanted to do something with the Instagram API few weeks ago and it kinda surprised me how restrictive it is. You cannot do nearly anything without authentication and everything else is restricted by the TOS.
Re:Facebook quietly deprecated their Python/Ruby libraries f... by derefr on Friday April 08, 2016 @07:35PM (#11458993)
Most sites build their anti-DDoS logic around per-user rate limits. This requires them to force all API requests—even ones for completely public data—through a user session, to give those requests a context to be rate-limited by.

Allowing 'anonymous, public' APIs either requires that you rate-limit either too conservatively (e.g. by client ID—so clients with more users hit rate limits) or too liberally (e.g. by IP—so truly malicious clients can just hit you with a botnet.)

The only good way to provide a registration-less public API boils down to pairing—effectively "registering the machine" by handing it a token, and then relying on supercookies or frequently-revalidated 2FA tokens to persist the session. But this only works if you can reasonably expect a person to only want to query your API from one device at a time. If there are real use-cases for which your clients will want to hit you from random new machines (e.g. CoreOS's hosted etcd) then pairing won't help you.

Re:Facebook quietly deprecated their Python/Ruby libraries f... by cmdrfred on Friday April 08, 2016 @07:24PM (#11458933)
As far as I know that seems to mimic the site itself, you can't do very much without being signed in.
Re:Facebook quietly deprecated their Python/Ruby libraries f... by minimaxir on Friday April 08, 2016 @07:51PM (#11459058)
I'm not happy about the restrictiveness either. (Especially the new Sandbox rate limitations)
Re:Facebook quietly deprecated their Python/Ruby libraries f... by cowholio4 on Saturday April 09, 2016 @12:20PM (#11461902)
Me neither but it seems like it's Instagram's attempt to stop the spammers.

Unfortunately, I have not seen a significant decrease in Instagram spam since the changes. So the changes just hurt legitimate developers.