I would like to share pictures in twitter



I would like to share pictures in twitter,but i don’t know how to get the media_id, thank you!
this is my method:

TwitterApiClient twitterApiClient = TwitterCore.getInstance().getApiClient(Twitter.getSessionManager().getActiveSession());
StatusesService statusesService = twitterApiClient.getStatusesService();
statusesService.update(content, null, null, null, null, null, null, null, "471592142565957632", new Callback<Tweet>() {

    public void success(Result<Tweet> result) {

    public void failure(TwitterException e) {


Hey @guohaiping521,

Are you trying to do this solely through the REST API or via Fabric?



Also, here are two examples that may help, though they are written in Swift: