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
132
votes
9 answers

Getting new Twitter API consumer and secret keys

I am working on a Twitter project where I want to use OAuth but I don't know where to get the consumer and secret keys. How can I get these?
Pankaj Mishra
  • 20,197
  • 16
  • 66
  • 103
85
votes
9 answers

Is there a way to get a user's email ID after verifying his/her Twitter identity using OAuth?

I am new to OAuth and have been playing around with the Twitter API. I am able to fetch the credentials of a user after authentication by making a request to http://api.twitter.com/1/account/verify_credentials.xml. The response contains the user id,…
Manoj Govindan
  • 72,339
  • 21
  • 134
  • 141
69
votes
8 answers

Owin Twitter login - the remote certificate is invalid according to the validation procedure

I started getting this error recently when trying to login using twitter- any idea why? Stack Trace: [AuthenticationException: The remote certificate is invalid according to the validation procedure.] System.Net.TlsStream.EndWrite(IAsyncResult…
user441365
  • 3,934
  • 11
  • 43
  • 62
57
votes
6 answers

Can we get email ID from Twitter oauth API?

How to get email id of the user who accepted my Twitter application? I have gone through lot of forums. But they have mentioned, it is not possible. Also those posts are older than a year. May I know whether it is possible to get the user email id…
Vinoth Babu
  • 6,724
  • 10
  • 36
  • 55
47
votes
2 answers

Authenticate and request a user's timeline with Twitter API 1.1 oAuth

This morning I have received the dreaded 'The Twitter REST API v1 is no longer active. Please migrate to API v1.1.' error in a few of my web sites. Previously I have been using javascript/json to make these calls to…
hutchonoid
  • 32,982
  • 15
  • 99
  • 104
43
votes
1 answer

Packaging Blackberry OAuth app throwing error

I am creating an application that will post a link onto Twitter. The following code refuses to package up for me, throwing the following error: Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified Here…
39
votes
2 answers

Asp.Net MVC 5 Owin Twitter Auth throwing 401 Exception

I have set up OAuth authentication using the Owin middleware based off the default project that gets created when starting a new Web project using "Individual accounts" authentication. I've tweaked it a bit, but Facebook and Google are working…
MikeAtCodeSmart
  • 591
  • 7
  • 14
38
votes
6 answers

Twitter OAuth (PHP): Need good, basic example to get started

Using Facebook's PHP SDK, I was able to get Facebook login working pretty quickly on my website. They simply set a $user variable that can be accessed very easily. I've had no such luck trying to get Twitter's OAuth login working... quite frankly,…
tnw
  • 13,521
  • 15
  • 70
  • 111
36
votes
9 answers

Why this error ' - Read-only application cannot POST '

Logcat: 12-05 23:37:01.721:W/System.err(534): 401:Authentication credentials (https://dev.twitter.com/docs/auth) were missing or incorrect. Ensure that you have set valid conumer key/secret, access token/secret, and the system clock in in…
sayem siam
  • 1,281
  • 3
  • 13
  • 26
36
votes
11 answers

Twitter API - Reasons for "invalid or expired token"

What are the possible reasons that can cause token to become expired (besides having the user un-authorising the app)? My problem is that I have an app with several thousands of users, all API communication works perfectly but for some users I am…
Ran
  • 3,455
  • 12
  • 47
  • 60
35
votes
5 answers

Twitter API authorization fails CORS preflight in browser

I'm trying to do the 3-legged authorization necessary to call the Twitter APIs in a browser. The process starts with getting a request token by POSTing a signed request to /oauth/request_token (this is also how sign in with Twitter begins). My…
rhashimoto
  • 15,650
  • 2
  • 52
  • 80
30
votes
2 answers

Ruby way to generate a HMAC-SHA1 signature for OAuth

I'm writing a small ruby program to play with Twitter over OAuth and have yet to find a right way to do the HMAC-SHA1 signature. So far, I messed around with Base64.encode64(OpenSSL::HMAC.hexdigest(digest, key, stuff)).chomp But this outputs…
Roberto
  • 1,944
  • 1
  • 30
  • 42
27
votes
3 answers

Setting up Twitter API, getting the last few Tweets

I am completely new to using Twitter in general and have never embedded "latest tweets" on any project. I am simply trying to embed the 3-4 newest tweets on the site footer with no additional features of functionality. I have been researching how to…
AnchovyLegend
  • 12,139
  • 38
  • 147
  • 231
26
votes
2 answers

best practice for storing oauth AND local authentication methods?

If I were to run a service that allowed users to authenticate via "local" username/password combinations and ALSO any number of OAuth services - what might that user data model look like? Usually, if I were handling all logins myself, in the "user"…
Hoopes
  • 3,943
  • 4
  • 44
  • 60
24
votes
11 answers

How to Exclude retweets and replies in a search api?

How to Exclude retweets and replies in a search api? I am trying to fetch the feeds from twitter using search api, in the result I am getting replies and retweets also. So I want to exclude replies and retweets. How to do it anybody help me. This is…
rakesh r
  • 465
  • 2
  • 4
  • 12
1
2 3
99 100