A social media post helped police track down a robbery suspect, accused of attacking and stealing from two people, an arrest warrant affidavit says.