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
5
votes
2 answers

Why twitter requires API key secret and Access Token Secret?

I want to understand the responsibilities/differences of API Secret and Access Token Secret. When I need to secure my APIs, I usually ask users to first register yourself and get the accessToken, and use the same for making API calls. Also, If you…
Rahul Tanwani
  • 441
  • 3
  • 10
5
votes
1 answer

POST-ing a tweet using libcurl and liboauth in C

I'm trying to post a tweet to Twitter with the following code, but keep getting the error "Could not authenticate you","code":32": curl_global_init(CURL_GLOBAL_ALL); CURL *curl = curl_easy_init(); char *signedurl = malloc(sizeof(char) * 1024);…
ccc
  • 83
  • 6
5
votes
1 answer

How to access Twitter REST API v1.1 using curl?

Using the "Test OAuth" feature (application settings) I can generate a fully set up curl command for a specified API request: curl --get 'https://api.twitter.com/1.1/followers/ids.json' --data 'count=10&cursor=-1&screen_name=microsoft' …
Raffael
  • 19,547
  • 15
  • 82
  • 160
5
votes
2 answers

Search twitter and obtain tweets by hashtag, maximizing number of returned search results

I am attempting to compile a corpus of all Tweets related to the World Cup on Twitter from their API using the twitteR package in R. I am using the following code for a single hashtag (for example). However, my problem is that it appears I am only…
DV Hughes
  • 305
  • 2
  • 5
  • 22
5
votes
1 answer

getting most popular hashtags using twitter api

I want to retrieve top 10 or top 20 most popular hashtags from twitter api. How can I do it, is there any direct api for this or should I collect a large dataset using twitter search api and manually collect popular hashtags?
Mr_Hmp
  • 2,474
  • 2
  • 35
  • 53
5
votes
1 answer

Why is my call to get Twitter user timeline returning "401 Unauthorized."?

I have the following code shamelessly taken from dev.twitter to get the time line of a specific user: string endpoint = "https://api.twitter.com/1.1/statuses/user_timeline.json"; string user_name = "....."; string ConsumerKey = "...."; string…
ChrisF
  • 134,786
  • 31
  • 255
  • 325
5
votes
1 answer

re-login user with passport.js twitter login

In passport I have Twitter authentication. Everything is fine login wise. I have this code app.get('/auth/twitter', function (req, res) { if (req.user) { return res.redirect('/'); } return passport.authenticate('twitter')(req,…
Drew H
  • 4,699
  • 9
  • 57
  • 90
5
votes
1 answer

DotNetOpenAuth Twitter Authenticaion Returning 401 Unauthorized

I'm starting to tear my hair out with Twitter and trying to signin a user!!! I have Facebook, Google, OpenId all working fine, just Twitter being a PAIN. I am constantly getting 401 Unauthorized when I try to run my code and for the life of me…
YodasMyDad
  • 9,248
  • 24
  • 76
  • 121
5
votes
2 answers

Authorizing with oAuth, posting to Twitter

I've created a Twitter Application to auto-post to my Twitter account. So, I don't need to authorize new users. I've already set access level to read/write, and received an access token. I've used the OAuth Tool in the application to generate a…
bozdoz
  • 12,550
  • 7
  • 67
  • 96
5
votes
3 answers

Using Twitter OAuth via API 1.1 without 3rd Party Library

I am facing trouble in using GET statuses/user_timeline with OAuth. I am new to twitter & programming. Most of the help I see in the documentation are for POST. Earlier I was using :…
qbektrix
  • 85
  • 2
  • 9
5
votes
1 answer

Fetch info using Twitter API v.1.1

I am not a professional, but currently, I am using the Twitter API V1 on my website to get basic data from a user's twitter account. I am using basic json to fetch content from https://api.twitter.com/1/users/show.json?screen_name=katyperry and it…
user2071196
5
votes
0 answers

Post tweet to a user with Twitter API

I have been using the Twitter Oauth API for posting tweets to my twitter timeline from my php application. It is working well.
shasi kanth
  • 6,987
  • 24
  • 106
  • 158
5
votes
1 answer

How to get the 3,200 tweets (Twitter API 1.1)

After a lot of trial and error, I have finally managed to fetch tweets with Twitters new API (version 1.1). I'm using the PHP TwitterOauth library. Even though I'm able to fetch tweets, two things I do not understand. The limit for…
user1781186
5
votes
1 answer

Twitter does not remember authorization

I am using Scribe (OAuth1.0) as a mechanism so that users can use their Twitter account to authenticate to my GWT/GAE application. According https://dev.twitter.com/docs/auth/implementing-sign-twitter, there are 3 possible scenarios: a/ User is…
peternees
  • 170
  • 1
  • 15
5
votes
2 answers

Using Android AccountManager Twitter credentials to create Twitter4J AccessToken

I am getting Twitter credentials from the Android AccountManager using the following code: AccountManager am = AccountManager.get(this); Account account =…