A man who used his Facebook account to post racist messages has been given community service.
Raymond Strachan, 21, used the social networking site to promote his support of fascist group the Scottish Defence League.
On Tuesday, Edinburgh Sheriff Court heard how Strachan visited various pages on Facebook and left various messages on them in an attempt to stir up racial hatred.
Strachan, from Edinburgh, started posting the messages in July 2011 and continued until he was caught in January this year. Police tracked him down after receiving complaints from other internet users.
The postings, made from his house and other locations in Edinburgh, abused various different racial groups.
Strachan was convicted of breaching the 1986 Public Order Act at a hearing last month.
Sheriff William Holligan him to 200 hours of community service.
Speaking after the case, the procurator fiscal for the East of Scotland, John Logue, welcomed the sentence.
Mr Logue said: “Police and prosecutors across the country take such offences extremely seriously. I hope this case sends a warning to those who think that offences committed on the internet are in some way immune from the reach of the law.
“Prejudice and hatred has no place in Scotland and we will continue to do all in our powers to eradicate it.”