Facebook is working out the final terms for buying the Israeli startup Waze, following media reports of the deal a week ago.