Washington DC (CNN Business) Instagram and its parent company Facebook are removing posts that voice support for slain Iranian commander Qassem Soleimani to comply with US sanctions, a Facebook spokesperson said in a statement to CNN Business Friday.

The Iranian government has called for nationwide legal action against Instagram in protest, even creating a portal on a government website for the app's users to submit examples of posts the company removed, Iranian state media reported.

Instagram is one of the few western social media platforms that is not blocked in Iran. Facebook and Twitter are blocked but some Iranians access those sites using VPNs.

Twitter is not removing posts that support Soleimani, a company spokesperson confirmed to CNN Business on Monday. It said as long as Twitter users abide by company rules , their posts will not be removed.

Read More