My code is like this:
var Cloud = require("ti.cloud");
var token = Ti.Facebook.accessToken;
Ti.API.info("CLOUD EXTERNAL ACCOUNT LOGIN");
Ti.API.info("*** fb accessToken: "+token);
Cloud.SocialIntegrations.externalAccountLogin({
type: 'facebook',
token: token
}, function (e) {
if (e.success) {
}
else {
alert('Facebook login error: \n'+ ((e.error && e.message) || JSON.stringify(e)));
}
});
I get the following errors in info
[INFO] : CFNetwork SSLHandshake failed (-9824)
[INFO] : CFNetwork SSLHandshake failed (-9824)
[INFO] : CFNetwork SSLHandshake failed (-9802)
[INFO] : CFNetwork SSLHandshake failed (-9802)
[INFO] : NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
And the alert dialog says:
JSON parse error: Unexpected identifier "Ett"
Anyone have any idea what may be causing this?