IOS – How does the Facebook Camera App know who I am the first time I go into it

facebookios

If you have the Facebook App on your iOS device, and you download the Facebook Camera App, the first time you go into Facebook Camera, you get:

Continue as David W.

(or whatever you're name is)

In iOS, all apps are suppose to store documents under App specific folders. There is a keychain for storing passwords and other credentials, but again, this is application specific. I even found documentation explaining that although Safari can download certificates, they must be imported into particular apps. The idea is to sandbox each app, so a security issue in one app doesn't affect the security of the entire device.

So, how does the Facebook Camera app know who I am if it can't get data from the Facebook App itself, and can't use Facebook App's data from the keychain?

Best Answer

This was covered by MG Siegler over at Paris Lemon last week, the explanation of how it does it is here.

Basically, iOS provides it's own Keychain functionality and if you know the Keychain key, then you can save and read data between apps that you write. In this case, the Facebook Camera app is reading data saved by the Facebook app.