Checking if curl available for facebook connect

As curl is not in the dependencies of the project the server may not have it, so we need to check if curl function exist.