PAYETTE, Idaho (AP) — A southwestern Idaho man authorities say escaped the Payette County jail by scaling a razor-wire fence and then taunted authorities on social media has been arrested in Mexico.

The U.S. Marshall's Service tells KBOI-TV that Nicholas Grove was recently arrested in Tulum, Mexico, and is being brought back to Idaho. U.S. Marshal Brian Underwood says social media played a role in Grove's capture because he bragged about his escape on Facebook.

Authorities say a surveillance camera shows Grove on Aug. 26, 2014, climbing the fence with razor wire and dashing away. Grove had been jailed for several weeks and faced charges of unlawful possession of a firearm by a felon, carrying a concealed weapon without a permit, possession of burglary tools and an invalid license.