Two migrants accused of raping a 12-year-old refugee at a housing centre for unaccompanied minors in Sweden lied about their age, claiming to be 15.

The men reportedly attacked the boy at the centre in Alvesta, Smaland, and are said to have filmed the sexual assault on a mobile phone.

Despite claiming to be 15 and 16 when applying for asylum in Sweden, the two alleged attackers have now been found to be over 18 after undergoing a dental age assessment, a prosecutor said.

The men accused of raping a 12-year-old boy at a housing for unaccompanied minors in Alvesta, Sweden, claimed to be 15 and 16, but have been found to be over 18 after undergoing a dental age assessment

Prosecutor Emma Berge also produced screen grabs of the accused's Facebook pages where one of them claims to be born in 1997, and the other in 1971.

One of the men also writes on the social network that he has previously worked as a mechanic in Dubai.

Ms Berge says that she is not claiming that the man is 45, but that he is over 18.

'A dental examination with an age assessment had been made by the National Board of Forensic Medicine, and then there is information from Facebook and similar sources,' Ms Berhge told Expressen.

'And then you also have to look at their appearance and how they are perceived.'

The men reportedly took turns in raping the boy, and shared a video of the sexual assault on their mobile phones Vaxjo Tingsratt heard

The alleged attack took place at a government-provided housing centre for underaged unaccompanied migrants and refugees in Alvesta, Smaland county.

The housing is meant to be for minors in their late teens, but despite the alleged victim only being 12 years old, he was placed at the home.

The alleged rape is said to have taken place outside, near the housing, in the beginning of January, Expressen reports.

The boy is said to have been beaten and then raped, first by one of the men, and then by the other.

The first rape was allegedly filmed by one of the men, and sent over to the second suspect's mobile phone.

One of the alleged perpetrators shared a room with the 12-year-old boy at the time of the alleged sexual assault.