The two men bragged about what they were doing on Instagram.
Copthorne; Police Called To Party
Facebook was used to advertise a private party at a secluded house in Copthorne, Surrey.
The invite was seen by scores of people and in the end the event was overrun with party goers.
Police cars, dog handlers and a helicopter were called to a large-scale disturbance at the location.
Neighbours had been worried the celebrations were getting out of hand and there were reports of a 'tremendous noise' being heard.
Bottles were thrown as officers dispersed the crowd and several police cars were damaged.
A female officer also had to be treated after she injured her hand. Three arrests were made.
A young man claiming to be the party's organiser said: 'I probably invited too many people.'
Surrey Police Inspector Paul Grove added: 'Officers were called to the scene after a party got out of hand and more people than anticipated turned up.'
Several units from Surrey Police assisted by the National Police Air Support unit (NPAS) were deployed to a private property on Herons Place in Copthorne following a report of a large scale disturbance at the location.
Officers were called to the scene around 10pm on Saturday, 8 June after it is believed a party at the location got out of hand and more people than anticipated turned up.
Uniformed response officers and the dog unit dispersed the crowd but were met with some opposition and several missiles, believed to be mainly bottles, have been thrown at those responding to the incident.
Several police response cars were also damaged during the incident.
Inspector Paul Grove, said: "This incident demonstrates the dangers which police officers face on a daily basis and a full investigation will now follow to find those responsible for the disturbance in a bid to bring them to justice.
"Surrey Police will not tolerate such violent behaviour against officers and members of the public and thankfully no-one was seriously injured.
"I would urge anyone who has information on this incident to contact officers and any information passed to us will be treated in the strictest of confidence."
Local officers from the Tandridge Safer Neighbourhood Team will carry out reassurance visits in the area over the coming days and will work closely with detectives as part of the investigation.
12 year old punched in face several times
Xmas warning over button batteries
Man pulls gun on staff at Sainsbury's supermarket, Peacehaven
Recently Played Tracks
Deposit £10 to get a £40 Welcome Bonus - That's £50 to play bingo, slots and more!*
Over 50 tracks to make you feel-good. New album out now...
Find your local four day weather report here.
What's happening on the roads where you are?
Make Heart the soundtrack to your day and you could be a winner with great prizes up for grabs throughout the day.
Find out more about some of the companies advertising on Heart 102.4 and 103.5
Get some great ideas on how to advertise your business on radio, online and on mobile.