PALO ALTO — Ending an infringement spat first disclosed in November as Twitter worked toward its massive initial public offering, the company announced Friday that it had acquired more than 900 patents from IBM and entered into a cross-licensing agreement. Terms weren’t disclosed.

IBM had accused Twitter of infringing on “at least three” patents, but invited the company to come to the table for discussions rather than pursue the matter in court. The deal marks Twitter’s first pure patent acquisition, and will prove key to the company’s defense strategy as it wards off infringement attacks going forward.