Facebook’s user-data scandal has spurred a clampdown at its Instagram unit.

The photo-sharing app surprised third-party developers over the weekend by abruptly curtailing their access to user information — in some cases by as much as 96 percent, according to reports on Tuesday.

Third-party apps that help Instagram pages gather and analyze data about their followers could previously pull updated data from Instagram’s application program interface, or API, 5,000 times per hour.

That hourly limit has been slashed to 200 — and in some cases, apps have had their access stripped altogether.

The change has caused a number of third-party apps to break, according to complaints on a StackOverflow forum, first spotted by TechCrunch.

“Is this a bug or the new normal?” one user asked.

Instagram did not publicly announce the change. Reps at the app declined to comment.

Facebook is under pressure to improve its handling of data after disclosing that the private information of 50 million users wrongly ended up with Cambridge Analytica, a Manhattan political consultancy.

Last week, Facebook said it would end its partnerships with several large data brokers who help advertisers target people on the social network.