0

While awaiting a response to my question here, the gist of which is:

  1. I want to start Facebook login on my iOS app
  2. I want to continue on Parse.com CloudCode where I can write to non-authenticated PFUser using MasterKey() so I can link the PFUser to the active Facebook session mentioned in step 1
  3. I want to return to my iOS app and make the PFUser my active/current user on the app

I was wondering if it is possible to pass an active FBSession object from iOS to CloudCode (JavaScript)?

artooras
  • 6,315
  • 9
  • 45
  • 78

1 Answers1

0

Sure, you can pass a Facebook session between devices. Simply get the FBSession and pass it to cloud code as you would any variable. Set a callback on the cloud code call to handle the passed back user.

You can also find useful background info on Facebook sessions here:

https://developers.facebook.com/docs/facebook-login/ios/v2.2#sessions

fb ios sdk session for use with existing fb connect website

Community
  • 1
  • 1
Ryan Kreager
  • 3,571
  • 1
  • 20
  • 35