Module: social

social

Camera module

Members

static,readonlyroblox.module:social.providersstring

Enum with the available providers

Methods

staticlogin(options, callback)

Login to a single social network

Name Type Description
options Object

Login options

Name Type Description
privider provider

The provider that is used for authenticating the user. The following values are currently supported for use with this parameter: facebook, twitter, yahoo, messenger, googleplus, linkedin, aol, foursquare, instagram, renren, qq, sina, kaixin, vkontakte, blogger, wordpress, typepad, paypal, amazon, livejournal, verisign, openid, netlog, signon, orangefrance, mixi, yahoojapan, odnoklassniki, spiceworks, livedoor, skyrock, vznet, xing. Also SAML providers are supported - the format of the provider name is "saml-".

forceAuthentication boolean optional

The default value of this parameter is 'false'. If set to 'true', the user will be forced to provide her social network credentials during the login, even if she is already connected to the social network. This parameter is currently supported by Facebook, Twitter, Renren, and LinkedIn. Please note that the behavior of the various social networks may be slightly different: Facebook expects the current user to enter their password, and will not accept a different user name. Other networks prompt the user to re-authorize the application or allow a different user to log in.

callback function
See:
TODO
  • NOT IMPLEMENTED

staticlogout(callback)

Logout from a social network

Name Type Description
callback function
TODO
  • NOT IMPLEMENTED

staticpresentShareDialog(text, link, imageURL, snapToElementID, callback)

Present a share dialog

Name Type Default Description
text string

Text to share

link string

Link to embed

imageURL string null optional

link

snapToElementID string

ID of the DOM element

callback function optional

Callback

Supported platforms
  • Web
  • iOS(7.0)
  • Android(19)