South Carolina deputies who were unable to chase down a fleeing drug suspect caught up with the man on his Facebook page.

"Hi Shawn, you lost your phone while running from the police,” said the post on Shawn Hagan’s Facebook page Friday. “Contact Berkeley County Sheriff's Office if you want it back."

Deputies used Hagan’s phone to hack into his Facebook account.

On the department's Facebook page they wrote another post, seeking tips on Hagan's whereabouts.

CLICK HERE TO GET THE FOX NEWS APP

The post read, “Does anyone know Shawn Hagan? (Not asking for a friend) We would really like to return his phone. Next time, secure all valuables before running.”

Hagan was nabbed Saturday, but not before trying to elude deputies again, The State newspaper reported Sunday.

Deputies thanked those who provided tips with helping them locate Hagan.

The State reported that the sheriff office's Facebook post had been shared more than 2,400 times since Friday.

POLICE DOG'S DEATH DURING MALL SHOOTING INSPIRES FLORIDA BOY TO PEN LETTER OF CONDOLENCE TO SHERIFF'S DEPUTY

"Hagan will be facing charges for the initial fleeing as well as drug charges," deputies said, adding the hashtag, "#DontBeLikeShawn."

Online records show Hagan, 30, was taken into custody on a charge of possessing meth with intent to distribute.