Greens will oppose social media ban