Game Development Reference
In-Depth Information
// to Facebook using the Graph API to post a wall message
s3eFBRequest* lpRequest = s3eFBRequest_WithGraphPath(lpSession,
"me/feed", "POST");
if (lpRequest)
{
// Add the required parameters
const char* lpAccessToken = s3eFBSession_AccessToken(lpSession);
s3eFBRequest_AddParamString(lpRequest, "access_token",
lpAccessToken);
s3eFBRequest_AddParamString(lpRequest, "message",
"Hello Facebook!");
// Send the request to Facebook
if (s3eFBRequest_Send(lpRequest, RequestCallback, NULL) ==
S3E_RESULT_SUCCESS)
{
// Wait for the callback to be triggered now!
}
else
{
// Error occurred sending request, so free it
s3eFBRequest_Delete(lpRequest);
}
}
Further s3eFacebook features
The previous sections really just scratch the surface of the kind of Facebook
integration that is possible using s3eFacebook. For example, we have made no
mention of processing any results sent back to our application by the Facebook
API. There is a whole family of functions with the prefix s3eFBRequest_Response
that allow the return values from a Facebook request to be analyzed.
For more information on the entire s3eFacebook API, go to Marmalade API
Reference | Extensions API Documentation | Facebook Extension | Facebook
API Reference in the Marmalade documentation.
Using Twitter
Sadly Marmalade provides no dedicated built-in support for Twitter; so if Twitter
is important to you, you'll need to provide your own implementation.
 
Search WWH ::




Custom Search