A teenage girl received stitches on her face after she was attacked by her friend’s pet dog while trying to take a selfie with it.

The 17-year-old girl, identified as Lara Sanson from Argentina, was trying to pose with a German shepherd by hugging it when it suddenly turned around and attacked her face.

On Thursday, she posted a series of photos on Twitter, including images of the dog attacking her and the stitches she received with the caption “A photo session goes wrong”.

According to reports, she had to undergo a two-hour-long surgery following the attack and received around 40 stitches on her face and inside her mouth following the incident.

Sanson told local media outlets that she did not feel much pain when she was bitten and believes that the dog did not attack her intentionally.

“I do not know if I touched its hip or if it reacted like this because it is old or it was because I hugged it and scared it,” she said.

A local veterinarian said the dog might have attacked her due to its old age. “Its pains are growing and pain could have generated this reaction,” he said.

She was reportedly recovering without any complications. However, she was experiencing inflammation and having trouble eating due to the injuries. The teenager also mentioned that the canine will not be put down following the attack.

Meanwhile, the tweet has since received over 344,000 likes and 70,000 retweets.

“A dog should never be hugged from the neck, don’t put your face near it, as their instinct tells them you are going to attack them, the neck is the most vulnerable part of a dog. Glad it was not worse,” commented a user.

“Stop taking selfies with your dog! They feel threatened, fearful and defensive. When you're trying to get a picture, you might be making your dog feel nervous. My dog trusts me. She would never do that to me but would do that to my husband. Reason why he never tries to force her!” commented another used.

German Shepherd
In this photo, a dog is seen during the First Championship of German Shepherd Dog Breeding organized by the Association of German Shepherd Dogs of Nicaragua in Managua, Feb. 10, 2013. Hector Retamal/AFP/Getty Images