Facebook has signed a deal to buy renewable energy in India from a local firm's wind power project, the social media giant's first such deal in the South Asian nation, the companies said on Thursday.