South Sudan has ordered a temporary ban on social media for 30 days due to violence against its nationals in Sudan, aiming to protect public safety.