Hello,
I am trying to get search Friends to work but if I copy the code from the official examples.
I get this error:
[WARN] Exception in event callback. { line = 52; message = "'undefined' is not an object (evaluating 'Cloud.Friends.search')"; name = TypeError; sourceId = 167292416; }This is my code:
Cloud.Friends.search({ user_id: Cloud.retrieveStoredSession () }, function (e) { if (e.success) { if (e.users.length == 0) { table.setData([ { title: 'No friends' } ]); } else { var data = []; for (var i = 0, l = e.users.length; i < l; i++) { var user = e.users[i]; var row = Ti.UI.createTableViewRow({ title: user.first_name + ' ' + user.last_name }); data.push(row); } table.setData(data); } } else { table.setData([ { title: (e.error && e.message) || e } ]); error(e); } });
2 Answers
Hello, I'm having the same problem using Ti 2.1.1.GA on iPhone (iOS5) when using Cloud.Friends.search. Error : "'undefined' is not an object (evaluating 'Cloud.Friends.search')".
We are applying to Appcelerator's contest and we would like to use ACS !
Thanks in advance
please using Ti 2.2.0.
Your Answer
Think you can help? Login to answer this question!