CSSocial
|
CSSocial framework was built to make use of social services like Facebook, Twitter or Google+ safe and easy to implement by the programmer. We were frustrated that every time we needed to integrate a social service into the app, each programmer did it his own way and usually spent more than an hour doing so. The decision was to make a one-line-of-code-do-magic solution which took only a couple of minutes to set up and run.
Parameter | Description |
---|---|
CSSOCIAL_FACEBOOK_APP_ID | Facebook App ID |
CSSOCIAL_TWITTER_CONSUMER_KEY | Twitter Consumer Key |
CSSOCIAL_TWITTER_CONSUMER_SECRET | Twitter Consumer Secret |
CSSOCIAL_FACEBOOK_PERMISSIONS_READ | Facebook read permissions |
CSSOCIAL_FACEBOOK_PERMISSIONS_PUBLISH | Facebook publish permissions |
CSSOCIAL_GOOGLEPLUS_CLIENT_ID | Google+ Client ID |
Posting a message to Facebook wall can be done by calling a single method like this. If you haven't handled the login process yourself, CSSocial handles it for you automagically:
If you assign a handler block, you will receive a response or an error if one has occured during the posting process. For more information on errors, see here.
Posting an image with a caption is done like this
Showing a Facebook dialog (as available depending on the platform )
If you assign a handler block, you will receive an error if user cancels the dialog or if something goes wrong while posting. For more information on errors, see here.
Posting a tweet to Twitter can be done calling a single method like this:
Showing a Twitter dialog (as available depending on the platform )
If you assign a handler block, you will receive an error if user cancels the dialog or if something goes wrong while posting. For more information on errors, see here.
Showing a Google+ dialog (as available depending on the platform )
If you assign a handler block, you will receive an error if user cancels the dialog or if something goes wrong while posting. For more information on errors, see here.