SC_MessageController
The SC_MessageController is used to post messages to a set of social networks or other receivers.
Posted messages usually refer to some Scoreloop-related event such as:
-
Achieving a score
-
Creating a challenge
-
Winning a challenge
-
Achieving an award
-
Inviting someone to join Scoreloop.
NOTE:
-
Where applicable, the user has to be logged in to the social network to be able to post messages.
Basic use: To post a message to a social network:
-
First check that the user is already connected to a social network. To do this, use the SC_SocialController_IsConnectedToSocialNetwork() API.
-
If the user is not connected, connect by calling SC_SocialController_ConnectToSocialNetwork().
-
Once connected, create an instance of SC_MessageController by calling SC_Client_CreateMessageController() .
-
Use SC_MessageController to create an SC_Message instance of the desired type by calling one of the following create message methods:
-
Add receivers to the message by calling one of the following add receiver APIs:
-
Call SC_MessageController_SubmitMessage() to post the message.
See also:
SC_SocialNetwork