Provides methods for access ArrowDB social integrations.
This example logs a user in using an external account and checks the response
Cloud.SocialIntegrations.externalAccountLogin({
type: 'facebook',
token: Ti.Facebook.accessToken
}, function (e) {
if (e.success) {
var user = e.users[0];
alert('Success:\n' +
'id: ' + user.id + '\n' +
'first name: ' + user.first_name + '\n' +
'last name: ' + user.last_name);
} else {
alert('Error:\n' +
((e.error && e.message) || JSON.stringify(e)));
}
});
This example links an external account and checks the response
Cloud.SocialIntegrations.externalAccountLink({
type: 'facebook',
token: Ti.Facebook.accessToken
}, function (e) {
if (e.success) {
var user = e.users[0];
alert('Success:\n' +
'id: ' + user.id + '\n' +
'first name: ' + user.first_name + '\n' +
'last name: ' + user.last_name);
} else {
alert('Error:\n' +
((e.error && e.message) || JSON.stringify(e)));
}
});
This example retrieves a list of Facebook Friends and checks the response
Cloud.SocialIntegrations.searchFacebookFriends(function (e){
if (e.success) {
alert('Success:\n' +
'Count: ' + e.users.length);
for (var i = 0; i < e.users.length; i++) {
var user = e.users[i];
alert('id: ' + user.id + '\n' +
'first name: ' + user.first_name + '\n' +
'last name: ' + user.last_name);
}
} else {
alert('Error:\n' +
((e.error && e.message) || JSON.stringify(e)));
}
});
The name of the API that this proxy corresponds to.
The name of the API that this proxy corresponds to.
The value of this property is the fully qualified name of the API. For example, Button
returns Ti.UI.Button
.
Indicates if the proxy will bubble an event to its parent.
Some proxies (most commonly views) have a relationship to other proxies, often established by the add() method. For example, for a button added to a window, a click event on the button would bubble up to the window. Other common parents are table sections to their rows, table views to their sections, and scrollable views to their views. Set this property to false to disable the bubbling to the proxy's parent.
Default: true
The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.
The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.
If this property is set to a Window or TabGroup, then the corresponding Activity lifecycle event callbacks will also be called on the proxy. Proxies that require the activity lifecycle will need this property set to the appropriate containing Window or TabGroup.
Applies the properties to the proxy.
Properties are supplied as a dictionary. Each key-value pair in the object is applied to the proxy such that myproxy[key] = value.
A dictionary of properties to apply.
Associate an external account with an existing ArrowDB user account.
Requires user login.
See Social Integration: Link an external account for the request parameters supported by this method.
Data is returned in the users
property of the parameter passed to the callback.
Parameters to send in the request.
Callback function to execute when the method completes.
Login to ArrowDB using an external account such as Facebook, Twitter, LinkedIn, etc.
See Social Integration: Login with external account for the request parameters supported by this method.
Data is returned in the users
property of the parameter passed to the callback.
Parameters to send in the request.
Callback function to execute when the method completes.
Disassociate an external account from a ArrowDB user account.
Requires user login.
See Social Integration: Unlink an external account for the request parameters supported by this method.
Data is returned in the users
property of the parameter passed to the callback.
Parameters to send in the request.
Callback function to execute when the method completes.
Returns a list of the current user's Facebook friends who are also using this application.
Requires user login.
See Social Integration: Find Facebook Friends for the request parameters supported by this method.
Data is returned in the users
property of the parameter passed to the callback.
Callback function to execute when the method completes.
Sets the value of the bubbleParent property.
New value for the property.
Sets the value of the lifecycleContainer property.
New value for the property.