Social media red flags for married couples

Can you offer any guidelines as to how much social media communication is appropriate for married persons when it involves individuals of the opposite sex? Are there any signs that might indicate when an online relationship is in danger of crossing the line of impropriety?