The refereeing was terrible throughout the game and especially in the first half.
However, the league being fixed doesn't make a lot of sense based on this game. What would be the goal of the fix? To keep the league as competitive as possible to rack up more $$$$. Secondly, according to many, its to help big-market teams.
That would best have been accomplished in this game by having the Bills win. The Eagles are 9-1 and playing a non-conference game. This is one that they could easily have afforded to lose without hurting big markets. The Bills on the other hand needed the victory badly in an exciting AFC playoff race. The league already has the Bills scheduled in prime time essentially through the rest of the season. Upcoming games @KC and @Miami would become much bigger marquee match-ups if the Bills win. Allen has become the NFL poster boy. He played a great game and having him heroically beat Philly on he road, would have had more buzz than any other outcome.
Any "fix" should have favored the Bills.