ISocialNetwork MembersNFX Class Library

[This is preliminary documentation and is subject to change.]

The ISocialNetwork type exposes the following members.
Methods

  NameDescription
Public methodCreateSocialUserInfo
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
Public methodGetExternalLoginReference
Returns href to login via social system/site
Public methodGetPicture
Returns user profile image or null if no image available. Picture kind specifies classification of pictures within profile i.e. "main", "small-icon" etc.
Public methodGetPictureData
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.
Public methodGetSpecifiedExternalLoginReference
Returns social service login URL for "two-stage" login networks. Currently twitter only requires this
Public methodObtainTokensAndFillInfo
Fills user info with values from social network
Public methodPostMessage
Post message to social network
Public methodPrepareReturnURLParameter
Public methodRenewLongTermTokens
Refreshes long term tokens (if provider needs them). Should be used in scenario like background server-side token renew routine
Public methodRetrieveUserInfo
Retrieves all user fields (e.g. screen name, email) but tokens.
Back to Top
Properties

  NameDescription
Public propertyCanPost
Defines if a meeesage can be post to this social network
Public propertyCredentialsEntry
Specifies how service takes user credentials
Public propertyDescription
Provides social network description, this default implementation returns the name of the class
Public propertyID
Globally uniquelly identifies social network architype
Public propertyName (Inherited from INamed.)
Public propertyRequiresSpecifiedExternalLoginReference
Specifies if this provider requires to obtain temporary token before redirecting to social network login page. Currently only Twitter requires this routine
Public propertyServiceURL
Returns the root public URL for the service
Back to Top
See Also