One of the most important features of YesGraph Android SDK is the ability to use custom Share Sheet to invite users to your application.

YesGraph Android SDK currently supports three sharing services out of the box:

  • Facebook
  • Twitter
  • YesGraph Invite Service (SMS or email invites to address-book contacts)

Before you can use the Share Sheet, you must authenticate with YesGraph and decide which sharing services will be used in your application.

Facebook Share Service

FacebookShareService will ask the user to post a message on their wall using Facebook app or Facebook webpage functionality.

No Permissions Required

To use this service, you do not need an application registered with Facebook.

Twitter Share Service

TwitterShareService will ask the user to tweet a message through the Twitter app or Twitter webpage.

No Permissions Required

To use this service, you do not need an application registered with Twitter.

Contact Share Service

ContactShareService is allows you to send invites by Email or Messages application (depending on the specific selected contacts).

Permissions Required

The Contact Share Service requires the user to allow your application to access the address book on the device.

YesGraph SDK uses three contact sources:

  • Online Contact Source - uses cached contact source and local contact source and caches ranked contacts from YesGraph API.
  • Cache Contact Source - caches ranked contacts on local device.
  • Local Contact Source - local device contact book.

The code below instantiates Invitation sharing activity with all three contact sources.

Intent intent = new Intent(context, ShareSheetActivity.class);
startActivity(intent);