Rowdy policemen learn their lesson from social media