Facebook Inc. is suing BlackBerry Ltd. for patent infringement, escalating the legal battle between the two companies over protected technology.