Questions tagged [twitter-oauth]

Twitter implementation of oauth

Oauth - is an open protocol to allow secure API authorization in a simple and standard method from desktop and web applications.

See also:

2753 questions
7
votes
1 answer

Twitter kit gives error despite successful login

I am using Twitter kit to log in with Twitter. After I have been logged in into Twitter, I get the following error in log. Code to login: - (IBAction)btnTwitterLogin_pressed:(id)sender { [[Twitter sharedInstance] logInWithCompletion:^ …
NSPratik
  • 4,714
  • 7
  • 51
  • 81
7
votes
2 answers

tweepy Not Authorized - tweepy.error.TweepError: Not authorized

I get the following error when I try to use tweepy for twitter authentication. File "/usr/local/lib/python2.7/dist-packages/tweepy/models.py", line 146, in followers return self._api.followers(user_id=self.id, **kargs) File…
Pratik Poddar
  • 1,353
  • 3
  • 18
  • 36
7
votes
1 answer

401 Unauthorized for https://api.twitter.com/oauth/request_token

I try to request a token via https://api.twitter.com/oauth/request_token but always get a 401 error. I do my testing via curl (easy to see what happen). Here is a request example : curl --request 'POST' 'https://api.twitter.com/oauth/request_token'…
djib
  • 656
  • 6
  • 18
7
votes
2 answers

Having multiple Twitter instances with twitter4j library.

I need to be able to make different Twitter instances with same consumer key and secret but different user level access tokens. I have already obtained the access tokens for 10 users based on consumer credentials of my app by using standard Twitter…
VaidAbhishek
  • 5,895
  • 7
  • 43
  • 59
7
votes
4 answers

how to post tweet using twitter 1.1 api and twitteroauth

I use the below code to retrieve my tweets and echo json. This works fine.
Susheel Singh
  • 3,824
  • 5
  • 31
  • 66
7
votes
2 answers

Using twitter to get bearer token

I'm using the following code to return the bearer token but i keep getting "The remote server returned an error: (500) internal server error" on line "WebResponse response = request.GetResponse();" WebRequest request =…
Adam
  • 1,136
  • 8
  • 26
  • 51
7
votes
1 answer

Posting images to twitter in Node.js using Oauth

I'm trying to post images to Twitter using the Oauth module. Here is what I have: It throws a 403 error, I know im doing something wrong with how I add the media to the post but Im just not sure where to go from here. var https =…
Adam Magaluk
  • 1,716
  • 20
  • 29
6
votes
4 answers

Upload Images On Twitter Using PHP

How i can upload image on Twitter Wall using consumer_key and consumer_secret without login using PHP? Please help me & thanks a lot.
Tony Stark
  • 8,064
  • 8
  • 44
  • 63
6
votes
6 answers

Getting First Name/Last Name/Email from Twitter using OAuth

I'm using omniauth exclusively to allow login to my website with facebook/google/twitter. I store first name, last name, and email. However, when I raise the twitter auth hash from oauth I only get nickname, name, location, image, description and…
Rapture
  • 1,876
  • 10
  • 23
  • 42
6
votes
3 answers

Android: Login with Twitter using Twitter4J

What I Have Tried: I already have registered an app in twitter and got Consumer Key and Secret.Even I got various codes to login with twitter.These are what I have tried…
Hiral Vadodaria
  • 19,158
  • 5
  • 39
  • 56
6
votes
1 answer

Linking several oauth accounts to a single user: what's considered safe practice and what's not?

In my web app, users are authorized either through Twitter or Facebook. I intend to also allow them, while logged in with, say, Twitter, to login with Facebook. Even at this point, could a user's account be compromised? I thought about it and…
6
votes
1 answer

Getting "Could not authenticate with OAuth." from Twitter when trying to POST

I'm successfully able to get an access token through the OAuth process. However, when I try to run a POST to the /statuses/update.json endpoint, I get a "Could not authenticate with OAuth." I'm signing with the token I got back from authenticating…
john
  • 33,520
  • 12
  • 45
  • 62
6
votes
3 answers

Go back after call Intent.ACTION_VIEW in android

My app has 3 activity A, B, C. Activity A calls B. In B, I call Intent.ACTION_VIEW to do authentication with Twitter as below: public static void DoAuthen(Context context, String CallBackUrl) throws OAuthMessageSignerException,…
Nguyen Minh Binh
  • 23,891
  • 30
  • 115
  • 165
6
votes
2 answers

Post a Tweet with twitter4j

I have a twiiter app with: // Bearer token // API key // API key secret // Access token: // Access token secret: and Read, Write, and Direct Messages permissions I use a ConfigurationBuilder class to configure Twitter4J programmatically in…
Nuñito Calzada
  • 4,394
  • 47
  • 174
  • 301
6
votes
2 answers

php How to make a right twitter api curl with oauth

I want use php curl with oauth to get the JSON data from twitter. Here is my code. return na error message "error":"Timestamp out of bounds". I want to know, how to make a correct twitter api curl with oauth? what is oauth_consumer_key,…
yuli chika
  • 9,053
  • 20
  • 75
  • 122