Former President John Mahama and South Africas former President Thabo Mbeki advised Kenyan opposition leader, Raila Odinga, to go to court over the countrys August 8 presidential election, Dr Emmanuel Akwetey has revealed.

READ MORE: What the Election Nullification means for Kenyans

However, following the annulment of the presidential results by Kenya's Supreme Court in a 4-2 decision, and an order for a re-run in 60 days, some Ghanaians have taken to social media to troll Mr Mahama.

They have accused him of executing his job poorly and that the cancellation of the August 8 vote is a proof.

But Dr Akwetey, who was also an observer, has jumped to his defence, saying Mr Mahama and Mbeki acquitted themselves well as leaders of the Commonwealth and AU Election Observer Missions to kenya.

Holding brief for Mr Mahama, Dr Akwetey explained that there was no way he could have detected hacking and tempering of the transmitted results.

In a Facebook post he explained: "Please hold your fire. Prez Mahama and Prez Mbeki acquitted themselves well as leaders of the Commonwealth and AU Elections Observer Missions to Kenya, respectively. I was in Kenya as an observer of the elections too. First, all observers agreed that the voting, vote counting and the e-transmissions of the results were transparent and credible. Therefore if the results published by the IEBC followed logically from the observations at the polling stations, then the results ought to be accepted as credible too. However, Raila and the NASA'S allegations about hacking and tampering with Form 34 A/B, they effectively raised doubts about the transmission of the IEBC results.

"Secondly, the international observers and their leaders could neither investigate the hacking etc allegations on the spot nor stop the declaration of the results, which the IEBC alone was empowered to do. The two leaders however engaged the IEBC and reported back to observers and the international media the IEBC had rejected the allegations by Raila & Co. Prezs Mahama and Mbeki repeatedly advised Raila & Ci to resort to the Supreme Court to deal with their claims.

"Thirdly, Raila & Co initially rejected the two Prezs advice and rather accused them of being friends or sympathisers of Kenyatta. But the leaders maintained their composure and their stand that the elections as observed were transparent and credible. But doubts about the credibility of the results ought to be sorted out in the SC, which was empowered to scrutinise the issues being raised by Raila & Co.

"Fourthly, Raila & Co proceeded to resort to the streets by calling for a nationwide strike. But the strike flopped; thereafter they decided to go the SC, as Prez Mahama and Mbeki had earlier advised. It is a good thing that Raila &Co eventually went to the Supreme Court as they had earlier been advised.

"By eventually respecting the advice of Prez Mbeki and Mahama to pursue justice in the SC, Raila and Co saved Kenya from explosive post-elections violence. Both those who insisted on the SC route and those who acted accordingly have been vindicated.

READ MORE: Judges are 'crooks,' Kenyatta blasts court after vote annulled

"The Kenyan SC has ruled thst the process of transmitting the results had serious flaws. Serious enough to undermine the integrity of the results and warrant a re-run of the Prez elections in 60 days.

"Today is a good historic day on which Kenya set a higher standard for credible elections, democracy and the rule of law in Africa.

"Let us therefore commend, rather than condemn, Prez Mbeki and Mahama as experienced African statesmen who uncompromisingly pointed Kenya in the direction of the SC; thereby, they played a critical role in steering Kenya away from a second post-elections violence in August 2017."