The MetroWest Daily News said 19-year-old Michael McGrath of Framingham allegedly bit, punched and choked the girl. He is also accused of destroying her laptop computer.
McGrath told police he was just joking, the newspaper said.
MySpace.com has a feature in which people can invite "friends" to their page, allowing them to send messages back and forth.
McGrath was charged with assault and battery and the malicious destruction of property worth more than $250, the newspaper said.