在一个单一的鸣叫张贴多张照片 [英] Posting multiple photos in a single tweet

查看:150
本文介绍了在一个单一的鸣叫张贴多张照片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想对Twitter的鸣叫一起分享多张图片,但我不能这样做。我能够与消息,但没有得到附加其他照片相同的鸣叫,因为微博不允许鸣叫相同的消息为8-10小时甚至一天一起鸣叫单张照片。这里是我的code,我做了什么鸣叫沿着照片中的消息。任何人都可以请让我知道我所欠缺的code或实现这个需求什么更好的方法我在哪里。

I want to share multiple images along with the tweet on the Twitter, but i am not able to do so. I am able to tweet single photo along with the message but not getting to append other photos in the same tweet since twitter does not allow to tweet the same message for 8-10 hours or even a day. Here is my code, what i have done to tweet the message along the photo. Can anyone please let me know where i am lacking in the code or any better way to implement the requirement.

下面是code为啁啾:

Here is the code for tweeting:

AccessToken accessToken = new AccessToken(access_token,
                    access_token_secret);
            Twitter twitter = new TwitterFactory(builder.build())
                    .getInstance(accessToken);

            File f = new File(Environment.getExternalStorageDirectory()
                    .getAbsolutePath().toString()
                    + "/xyz.png");
            StatusUpdate statusUpdate = new StatusUpdate(status);
            statusUpdate.setMedia(f);
            twitter.updateStatus(statusUpdate);

在此先感谢

推荐答案

在做大量的R&放后; D,我才知道,我们不能在一个单一的tweet发布多个图像,并且还微博不允许在短短的时间被挖苦同样的信息。你可以几个小时后,它张贴(可能是周围7-8个小时),因为它提供了复制信息错误。于是我就打电话其中通过采取一个计数器变量,并与图像我有名单检查发布帮助鸣叫与媒体文件的功能。所以最终我能张贴三种不同的鸣叫,因为在我的名单是三幅图像。

After doing lot of R & D, i came to know that we can not post more than one image in a single tweet, and also Twitter does not allow same message to be twitted in short span of time. You can post it after several hours(may be around 7-8 hours), since it gives "Duplicate message error". So i called the function which helped posting tweet with the media file by taking one counter variable and checking with the list of images i had. So at the end i was able to post three different tweets as there were three images in my list.

和你,你可以在此 链接 中,你会知道,你可以在一个单一的tweet发布的图像数量

And ya, you can check in this link in which you will come to know the number of images you can post in a single tweet

这篇关于在一个单一的鸣叫张贴多张照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆