The woman identified as Laleh Shahravesh (55), a resident in Richmond, London.
According to the campaign group Detained in Dubai, Laleh Shahravesh was married to her ex-husband for 18 years, during which time she had stayed in the UAE for a few months.
Following Pedro's death, aged 51, following a heart attack on March 3, Sharavesh and her daughter flew to Dubai on the March 10 to attend the funeral.
In 2016, after living in Dubai for eight months where he worked for a bank, she returned to the United Kingdom, expecting her husband to follow.
Her 14-year-old daughter was later allowed to fly home alone and is staying with relatives.
In one post, she wrote: "I hope you go under the ground you idiot".
"You left me for this horse".
In 2016, Shahravesh's ex-husband got re-married.
"When the UAE introduced Cybercrime laws, it rendered nearly every visitor to the country a criminal", she said in a statement.
A shocking piece of news has come to light from Dubai where a British mother has been awarded two years of jail punishment in Dubai along with a £50,000 fine over her Facebook comments.
They were held for 12 hours before Ms Shahravesh's passport was seized, Detained In Dubai said.
The woman found her former husband was remarrying when she saw photos of the new couple on Facebook.
Shahravesh is due in court on April 11, according to the campaign group.
"The police kept telling me to call someone to take my daughter while I went to Jebel Ali", she said. "And Paris wanted to say goodbye to her father", she said.
Ms Shahravesh had been married to her ex-husband for 18 years and the couple had lived in Dubai for an eight-month period.
Detained in Dubai says the offending comments were made in Farsi.
The British Foreign Office is supporting Ms Shahravesh, according to the BBC.
Though Shahravesh has been bailed, her passport has been confiscated and she is living in a hotel, Detained in Dubai Chief Executive Radha Stirling told the BBC.
"Our diplomats in the UAE have enormous experience in dealing with consular cases.so she is getting the best possible service" from the British authorities, he added.