I have seen a couple posts similar to this one, but none of them answered the question so I am going to try and ask again. I am new to ACS, and I am trying to get a user to create a new account using the Cloud.SocialIntergrations.externalAccountLogin service. I am successfully able to sign a user up, and log that user back in afterwards using this. The issue I am having is that the user cannot access the other ACS services once logged in, for example Cloud.PhotoCollections.create. When I do this, I get an error message:
Request Name POST /v1/collections/create.json Response Status 404 Response Message Failed to authenticate user Parameters { "ti_analytics" => "{"id":"ccb2535f-00f9-4ded-b3fe-14e8d4de28d5","mid":"fd69d5826bcb085","aguid":"a175c577-fbbc-4cc5-be0b-1683db61eee2","event":"cloud.collections.create","deploytype":"development","sid":"740aaac3-272e-4604-8978-41056ccdf88e"}", "suppress_response_codes" => "true", "name" => "523104faa7a0670b0f01f56f_Decisions", "key" => "xNSIh3kJBzpLsyKk1gdRZX8jJMjFvJO7", "controller" => "collections", "action" => "create", "version" => "v1", "format" => "json" } User Agent Appcelerator Titanium/3.1.1 (google_sdk; Android API Level: 10; en-US;)Here is the code I am using. I am calling SocialIntegrations in the success case of a Facebook login, and then calling the create for PhotoCollections in the success of SocialIntegrations service.
facebook.addEventListener('login', function(e){ if(e.success){ Cloud.SocialIntegrations.externalAccountLogin({ type: socialNetwork, token: token }, function (e) { if (e.success) { Cloud.PhotoCollections.create({ name: "SomeName" }, function(e){ if(e.success){ Ti.API.info(JSON.stringify(e)); } else{ Ti.API.error("Creation of user photo collection failed.") } }); } }); } });