According to reports, the judge also ordered that both of the applications be blocked.
Other social websites and applications -- such as Facebook, Twitter and YouTube -- have already been banned in the country.
Even though Twitter is banned in Iran, Foreign Minister Mohammad Javad Zarif still uses his account actively.
Back from CICA Summit in Shanghai. Excellent & substantive Iran-China and Iran-Russia Summits. Relations stronger than ever. Good for all.— Javad Zarif (@JZarif) May 23, 2014
Iranian President Hassan Rouhani has also spoken out in favor of social media in the past.
"We should see the cyber world as an opportunity," Rouhani reportedly said last week. "Why are we so shaky? Why don't we trust our youth?"
Despite the judge's order, Zuckerberg will probably not be appearing in court because there is no extradition treaty between Iran and the United States.