Apple and Facebook have become frenemies versus Google. The iPhone maker hasn't figured out social networks. Remember Ping? Facebook fears losing control to the makers of operating systems powering mobile gadgets. Making the social network work smoothly on Apple devices can boost revenue for both – and allow them to thwart their mutual nemesis Google.

Apple and Google's once close relationship has deteriorated. The two companies used to share board members; now Apple is resorting to replacing Google Maps with its own product. It's no secret what is to blame. Google's Android operating system for mobile devices has grown in popularity and Google acquired Apple's American handset rival Motorola. That threatens Apple's iPhone, its biggest and most profitable business. Meanwhile, the search giant's efforts to build and spread its social network, Google+, placed a bulls-eye directly on Facebook's back.

Apple's announcement at its developers' conference Monday that its newest operating systems will be integrated with Facebook is a means of fighting back. Among other functions, Facebook events and contacts can be automatically added to devices' calendars and contact lists. Apple users will be able to share pictures, maps and other files easily on the social network. And developers will now be able to make apps tailored to Apple devices as well as Facebook.

Story continues below advertisement

There are benefits to both. Facebook will have more pictures and posts to sell advertising against. It also gets additional information about users – for example, location – which should result in targeted, higher price ads. Allowing users to "like" apps, videos and music in Apple's online store helps the gadget maker. This alerts people to bands or programs their friends enjoy, which can spread them quickly. Apple gets a cut of resulting sales, and the more apps put on iPhones, the more compelling the gadgets.

It has become a Silicon Valley article of faith that companies need to master mobile, social and cloud technologies to prosper. Google is making efforts in both smartphones and social networks. For example, gripping social networks encourage customers to upgrade to more powerful phones. By teaming up, Facebook gets access to arguably the best smartphone platform, and Apple the world's biggest social network. Partnerships are hard to manage – after all, Google and Apple used to be best buddies – but it gives both companies powerful tools to take on a fierce common enemy.

Robert Cyran