A Massachusetts man has been charged with threatening to burn down Boston's largest mosque and making other threats to the Muslim community.

Federal prosecutors say 44-year old Wilmington resident Patrick Keogan will appear in court Tuesday to face charges of making online threats and being a convicted felon in possession of ammunition.

Authorities allege that in November he posted an image depicting a mosque in flames on the Islamic Society of Boston Cultural Center's Facebook page with the message: "Burn your local mosque."

They say he also included the statement "Hello scumbags" and a smiley face emoji in his post.

Authorities say Keogan posted the same image on the Islamic Society of Northeastern University's Facebook page.

His attorney declined to comment pending the afternoon court appearance.