ABUJA, Nigeria (AP) — Sunday Oliseh announced he quit as coach of Nigeria on Friday and accused the national federation of "contract violations" including failing to pay him his wages.

Oliseh said on his official Twitter account he was resigning because of a "lack of support" from his bosses.

The federation failed to pay him wages and provide promised benefits for players and his assistant coaches, he wrote, adding: "I resign as Super Eagles chief coach."

Oliseh's predecessor, Stephen Keshi, complained of similar problems when he was in charge of the national team. Oliseh took over in July last year after Keshi was fired for what the Nigerian Football Federation called breach of contract for applying to be the Ivory Coast coach.

Keshi's time with Nigeria was also marked with disputes with the federation over unpaid wages, among other problems.

Oliseh stirred controversy recently when he lashed out at critics of his team's performances in videos he posted on social media. Following Nigeria's failure to progress past the group stage of the African Nations Championship in Rwanda, Oliseh called the criticism of him and the team "insanity." He said some were intentionally undermining him.

He was rebuked by the federation and forced to apologize for the video posts, and was called to a meeting with federation officials on Friday to explain his plans for the team.

Oliseh, a former Nigeria midfielder and captain, was a surprise choice as head coach given his lack of experience in management. However, he had a good record in the seven months he was in charge.

He departs with Nigeria facing two important African Cup of Nations qualifiers against Egypt next month. The federation did not immediately comment on Oliseh's resignation announcement.