Princess Eugenie with her husband Jack Brooksbank at their wedding with homeless people photoshopped into the image

Facebook said it has taken action on 'coordinated inauthentic behaviour' originating from Iran, which included accounts posting about the royal family and US President Donald Trump.

Some 51 Facebook accounts, 36 pages, seven groups and three Instagram accounts were removed, targeting public figures and politics in the UK and US, the social network said.

The US secessionist movements, Islam, Arab minorities in Iran and the influence of Saudi Arabia in the Middle East were also among the targets online.

A photo of Princess Eugenie marrying Jack Brooksbank with homeless people edited into the image was used by one page, claiming that the princess 'expects the taxpayer to subsidise her dream wedding, while food banks are over run', in an apparent attempt to stir up tensions among the British public.

Meanwhile, a video of Mr Trump joining a ceremonial sword dance in Saudi Arabia was also distributed with suspected malicious intent.

The original unedited image of Princess Eugenie and Jack Brooksbank leaving St George's Chapel in Windsor Castle following their wedding on October 12, 2018 is pictured above

A video of Mr Trump joining a ceremonial sword dance in Saudi Arabia was also distributed with suspected malicious intent

The people behind the activity misled people about who they are and their intentions, Facebook explained in a blog post, sometimes representing themselves as journalists.

'We're constantly working to detect and stop this type of activity because we don't want our services to be used to manipulate people,' said Nathaniel Gleicher, Facebook's head of cybersecurity.

'Policy, as is always the case with these takedowns, is we're removing these pages, groups and accounts based on their behaviour, not the content they posted.'

Around 21,000 accounts followed one or more of the pages involved, while approximately 1,900 accounts joined one or more groups and about 2,600 followed at least one of the Instagram accounts.

Islam and Arab minorities in Iran were among the targets online, according to Facebook

Under the page name 'Ahwaz Saudi Channel', the post says: 'One of the easy ways to wage war against [Saudi Arabia's King Salman]: Saudi youth have taken up writing [anti-government slogans] on walls. Breaking the barrier of fear of the security forces strikes terror into the rulers #Writing_on_the_wall'. The graffiti states: 'Death to the Al Saud // Vision 2030 – a vision of unemployment, poverty, and corruption'

'Based on a tip shared by FireEye, a US cybersecurity firm, we conducted an internal investigation into suspected Iran-linked coordinated inauthentic behaviour and identified this activity,' Mr Gleicher continued.

'We've shared our analysis with law enforcement, policymakers and industry partners.'

Last month it was reported that Iran carried out a number of cyber attacks on the Post Office and the UK's local government networks in the lead-up to Christmas.