Some 37 people have been arrested for "provocative" social media posts, the interior ministry says.