How can I get share result?


#1

How can I get share result when compose a Tweet? onsuccess or onfailure
My code like this:
TweetComposer.Builder builder = new TweetComposer.Builder(this)
.text(“just setting up my Fabric.”)
.image(myImageUri);
builder.show();

If I can not get share result from above code, whether I must use “App Card Composer”?

When I do it by your document from https://docs.fabric.io/android/twitter/compose-tweets.html#twitter-kit-app-card-composer, I found TwitterCore.getInstance().getSessionManager()
.getActiveSession() always NULL.
Whether my APP must login with twitter?

If my application be whitelisted by Twitter and not use twitter login, whether I can make TwitterCore.getInstance().getSessionManager()
.getActiveSession() not NULL?


#2

In order to post a Tweet, your app must be authenticated to Twitter with a user context, so yes, you must first have executed a sign-in with Twitter flow. There is no need for whitelisting or approval for this.


#3

How can i get result if I use below code for post tweet? onsuccess or onfailure
TweetComposer.Builder builder = new TweetComposer.Builder(this)
.text(“just setting up my Fabric.”)
.image(myImageUri);
builder.show();