BlackBerry executives flew to Facebook's California headquarters to weigh up the possibility of selling all or part of the failing smartphone manufacturer to the social network.