Now, buy gifts through Facebook!

Social networking site Facebook is testing a virtual assistant, called 'M', nestled within its Messenger that can help users buy gifts and make restaurant reservations.

"Today (Thursday) we're beginning to test a new service called M. It is a personal digital assistant inside Messenger that completes tasks and finds information on your behalf," David Marcus, vice president of messaging products at Facebook, said.

Marcus said 'M' can perform tasks that no one else can and added that unlike other virtual assistants in the market like Apple's Siri and Microsoft's Cortana, 'M' can complete tasks on behalf of the users.

"It can purchase items, get gifts delivered to your loved ones, book restaurants, travel arrangements, appointments and way more," said Marcus.