PSR B1259-63 is a $\gamma$-ray emitting high mass X-ray binary system, of which the compact object is a millisecond pulsar. The system has an orbital period of 1236.7 days and shows peculiar $\gamma$-ray flares when the neutron star moves out of the stellar disk of the companion star. The $\gamma$-ray flare events were firstly discovered by Fermi-LAT around the 2010 periastron passage, which was repeated for 2014 and 2017 periastron passages. We analyzed the Fermi-LAT data for all the three periastron passages and found that in each flare the energy spectrum can be well represented by a simple power law. The $\gamma$-ray light curves show that in 2010 and 2014 after each periastron there are two main flares, but in 2017 4 flares including one precursor about 10 days after the periastron passage. The first main flares of 2010 and 2014 are located at around 35 days after the periastron passage, and the main flare in 2014 was delayed by roughly 1.7 days with respect to that in 2010. In 2017 flare, the source show precursor about 10 days after the periastron passage, but the following two flares become weaker and lag those in 2010 by roughly 5 days. The strongest flares in 2017 occurred 58 days and 70 days after the periastron passage. These results bring challenge to previous models.