A Facebook argument over a barking dog has allegedly led to a home invasion and the assault of a 71-year-old man near Albury.

Police said the online debate about responsible dog ownership took place on Tuesday afternoon.

It is understood the argument included issues of a dog barking and a failure to clean up after it.

The 71-year-old man was in bed at his home in Howlong about 10.40pm when a noise woke him and he went to investigate.

Police allege the man was assaulted inside his home.