FatFractal customer forums



Author Topic: Facebook Login with Fatfractal  (Read 961 times)

manjonn

  • Newbie
  • *
  • Posts: 4
    • View Profile
Facebook Login with Fatfractal
« on: March 19, 2015, 09:14:15 PM »
I want my users to login with Facebook, but I want to control the login and pass the username & authotoken. How do I do that?

dave

  • Administrator
  • *****
  • Posts: 52
    • View Profile
Re: Facebook Login with Fatfractal
« Reply #1 on: March 20, 2015, 02:00:57 PM »
If you get the access token yourself, login is then very simple. I don't know what platform you're targeting, but in iOS you would do this:

Code: [Select]
FatFractal *ff;
NSString *accessToken;
// ...
[ff setToken:accessToken forScriptAuthService:FF_SCRIPT_AUTH_SERVICE_FACEBOOK];
[ff loginWithScriptAuthService:FF_SCRIPT_AUTH_SERVICE_FACEBOOK];

Dave

manjonn

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Facebook Login with Fatfractal
« Reply #2 on: March 20, 2015, 03:30:20 PM »
Thank you!!

dave

  • Administrator
  • *****
  • Posts: 52
    • View Profile
Re: Facebook Login with Fatfractal
« Reply #3 on: March 25, 2015, 01:08:47 PM »
You are very welcome :)

 

Copyright © FatFractal customer forums