Ben twitter4j-core-4.0.4.jar kullanıyor. Bir videoyu twitter ile paylaşmaya çalışıyorum ama hata alıyorum Tweetlerde arama yapılamadı: 403:
Bu
Bu i alıyorum yanıttırConfigurationBuilder builder = new ConfigurationBuilder();
builder.setUserStreamRepliesAllEnabled(true);
builder.setOAuthConsumerKey("myConusmerKey");
builder.setOAuthConsumerSecret("myConsumerSecret");
AccessToken accessToken = new AccessToken(pref.getString("ACCESS_TOKEN", ""), pref.getString("ACCESS_TOKEN_SECRET", ""));
Twitter twitter = new TwitterFactory(builder.build()).getInstance(accessToken);
File file = new File(picturePath);
StatusUpdate statusUpdate = new StatusUpdate(messageText.getText().toString());
Uri uri = Uri.parse(picturePath);
InputStream is = ScribbleFragment.this.getContentResolver().openInputStream(uri);
Log.d("Logger", "Sending media");
statusUpdate.setMedia(picturePath, is);
Log.d("Successfully sent media", "Sent media");
status = twitter.updateStatus(statusUpdate);
return status.toString();
benim kodudur i googled ama
W/System.err: Failed to search tweets: 403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (https://support.twitter.com/articles/15364-about-twitter-limits-update-api-dm-and-following). W/System.err: message - Error creating status. W/System.err: code - 189
tamam kontrol edeceğim. –