I need to expose a web API to an iPhone app. Users will connect with Facebook (no "proprietary" user accounts, all Facebook based). Some methods will require authentication and others won't.
When users connect to Facebook from the iPhone app, the app keeps an authentication (session) cookie. My first thought is to use Windows Forms to set an authentication cookie server-side. Then, the app will be able to call the methods requiring authentication.
My question is -how could I securely set an authentication cookie server-side (after it's set in the app)? Are there any other secure patterns? Thank you.