Social media giant Facebook (NASDAQ:FB) has agreed to buy the output of a 28.8-MW wind farm that Brookfield Renewable Energy Partners (NYSE:BEP) will build in Ireland.