I used following code to share post on google plus in android app. But It does not shows description of snippet.It shows everything except description.Is there any reason of this?
Intent shareIntent = new PlusShare.Builder(this)
.setText("Test")
.setType("text/plain")
.setContentDeepLinkId(
"Example", /** Deep-link identifier */
"Snippet", /** Snippet title */
// ------------ Below Desciption is not visible in post --------------
"Good Example", /** Snippet description */
Uri.parse("https://www.example.com/snippet.png"))
.getIntent();
startActivityForResult(shareIntent, POST_ON_GOOGLE_PLUS);
Any help will be appreciated.
Verify that you have enabled deep linking in the Google APIs Console under
Client ID for installed applications
.If that is enabled for your Android client, try and see if the sample code from the documentation works, I just tested it and it works for me:
Something to note:
PlusShare.Builder(this)
will use an unauthorized client and will fallback to a regular share.If you don't pass the client the following will not work:
I'm guessing this is why the interactive post is not rendering correctly for you. Make sure to pass your authorized API client.