Anti-Islam Facebook video will put man behind bars, court hears