A Fayetteville police officer is out of the hospital after being shot in the line of duty, and is thanking the community for its support.