Do you know, How to create ACS cloud user account using Facebook login?
Yes, we can do using ACS Social Integrations.
The external account login will create a ACS Services account if it hasn't been created, otherwise, it will login using the user who has the matching external account info.
STEP 1 - Facebook login in Titanium App
Use below sample code for Facebook login
STEP 2 - Social Integration
After successfull login with Facebook, you will get Facebook accessToken, you can retrive this token using "Ti.Facebook.accessToken".
To integrate your facebook account with cloud, you need to pass three parameters to "Cloud.SocialIntegrations.externalAccountLogin" method,
id - External account's user id, optional for facebook. ACS server will obtain the uid using facebook token if id is missing
type - Type of the external account social media like Facebook, LinkedIn, Twitter(Currently only facebook token will be validated by the ACS server)
token - Token provided by the external account
add SocialIntegrations in Facebook login event listener
After the successful ACS Social Integrations go to
https://my.appcelerator.com/apps -> ypou-app -> Manage ACS -> Development -> Users
Here you will find a new cloud user account, which was created by external account login.
Other Methods
externalAccountLink - Associate an external account with an existing Appcelerator Cloud Services user account
externalAccountUnlink - Disassociate an external account from a Appcelerator Cloud Services user account.
searchFacebookFriends - Retrieves a list of Facebook Friends
References:
http://docs.appcelerator.com/titanium/2.1/index.html#!/api/Titanium.Cloud.SocialIntegrations
https://cloud.appcelerator.com/docs/api/v1/social/loginexternal
Yes, we can do using ACS Social Integrations.
The external account login will create a ACS Services account if it hasn't been created, otherwise, it will login using the user who has the matching external account info.
STEP 1 - Facebook login in Titanium App
Use below sample code for Facebook login
STEP 2 - Social Integration
After successfull login with Facebook, you will get Facebook accessToken, you can retrive this token using "Ti.Facebook.accessToken".
To integrate your facebook account with cloud, you need to pass three parameters to "Cloud.SocialIntegrations.externalAccountLogin" method,
id - External account's user id, optional for facebook. ACS server will obtain the uid using facebook token if id is missing
type - Type of the external account social media like Facebook, LinkedIn, Twitter(Currently only facebook token will be validated by the ACS server)
token - Token provided by the external account
add SocialIntegrations in Facebook login event listener
After the successful ACS Social Integrations go to
https://my.appcelerator.com/apps -> ypou-app -> Manage ACS -> Development -> Users
Here you will find a new cloud user account, which was created by external account login.
Other Methods
externalAccountLink - Associate an external account with an existing Appcelerator Cloud Services user account
externalAccountUnlink - Disassociate an external account from a Appcelerator Cloud Services user account.
searchFacebookFriends - Retrieves a list of Facebook Friends
References:
http://docs.appcelerator.com/titanium/2.1/index.html#!/api/Titanium.Cloud.SocialIntegrations
https://cloud.appcelerator.com/docs/api/v1/social/loginexternal


