मैं ट्विटर पर काम कर रहा हूं, मेरे पास टोकन तक पहुंच है और मुझे अब ट्वीट मिल रहा है, मैं ट्विटर पर इस ट्वीट पर जवाब देना चाहता हूं जैसे कि मैं नीचे दिए गए कोड का उपयोग कर रहा हूं लेकिन यह ट्वीट का जवाब नहीं है लेकिन यह अद्यतन मेरी स्थिति कृपया मुझे इस मुद्दे को हल करने के लिए धन्यवाद मदद ..ट्वीट पर उत्तर देने के लिए ट्विटर 4j एपीआई का उपयोग कैसे करें?
public void tweetReply() {
try {
// System.out.println("Post Id= " + itemsObj.postId);
AccessToken a = new AccessToken(twittertokens[0], twittertokens[1]);
Twitter twitter = new TwitterFactory().getInstance();
twitter = new TwitterFactory().getInstance();
twitter.setOAuthConsumer(Constants.CONSUMER_KEY, Constants.CONSUMER_SECRET);
twitter.setOAuthAccessToken(a);
Long id = new Long("236178766597087234");
twitter.updateStatus(new StatusUpdate("@lalitrajput024 this is to test For reply option ").inReplyToStatusId(id));
} catch (Exception e) {
// TODO: handle exception
}
}
मैं ढेर अतिप्रवाह पर इस समस्या का समाधान है .. इस लिंक http://stackoverflow.com/questions/13134629/in-android-how-directly-post-tweet-to-following-users का पालन करें -फ-ए-प्रमाणीकरण-उपयोगकर्ता-इस लिंक उत्तर में चेक आउट करें! मुझे आशा है कि यह लिंक आपकी मदद कर सकता है! –