[This is preliminary documentation and is subject to change.]
The ISocialNetwork type exposes the following members.Methods
Name | Description | |
---|---|---|
![]() | CreateSocialUserInfo |
Create an instance of social user info class.
If parameters are null then creates new non-logged-in instance, otherwise, if parameters are set,
then connects to network and tries to re-initializes SocialUser info with fresh data
from the network (i.e. name, gender etc.) using the supplied net tokens, or throws if tokens are invalid (i.e. expired).
This returned instance is usually stored in session for later use
|
![]() | GetExternalLoginReference |
Returns href to login via social system/site
|
![]() | GetPicture |
Returns user profile image or null if no image available.
Picture kind specifies classification of pictures within profile i.e. "main", "small-icon" etc.
|
![]() | GetPictureData |
Returns user profile image data along with content type or null if no image available.
Picture kind specifies classification of pictures within profile i.e. "main", "small-icon" etc.
|
![]() | GetSpecifiedExternalLoginReference |
Returns social service login URL for "two-stage" login networks.
Currently twitter only requires this
|
![]() | ObtainTokensAndFillInfo |
Fills user info with values from social network
|
![]() | PostMessage |
Post message to social network
|
![]() | PrepareReturnURLParameter | |
![]() | RenewLongTermTokens |
Refreshes long term tokens (if provider needs them).
Should be used in scenario like background server-side token renew routine
|
![]() | RetrieveUserInfo |
Retrieves all user fields (e.g. screen name, email) but tokens.
|
Properties
Name | Description | |
---|---|---|
![]() | CanPost |
Defines if a meeesage can be post to this social network
|
![]() | CredentialsEntry |
Specifies how service takes user credentials
|
![]() | Description |
Provides social network description, this default implementation returns the name of the class
|
![]() | ID |
Globally uniquelly identifies social network architype
|
![]() | Name | (Inherited from INamed.) |
![]() | RequiresSpecifiedExternalLoginReference |
Specifies if this provider requires to obtain temporary token before redirecting to social network login page.
Currently only Twitter requires this routine
|
![]() | ServiceURL |
Returns the root public URL for the service
|
See Also