NEW YORK/SAN FRANCISCO (Reuters) - Facebook Inc is buying Boston-based software company Confirm Inc, which specializes in authenticating government-issued identification cards, a person familiar with the acquisition said on Tuesday.