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

Using twitter API get error sometimes

I use the following code which works sometimes but its unstable , when I run the program sometimes I got error 420 with json parse error which doesnt give you lot of hints how to solve it. any idea what am I doing wrong ? The error is : Error…
07_05_GuyT
  • 2,787
  • 14
  • 43
  • 88
11
votes
2 answers

window.open without popup blocker using AJAX and manipulating the window.location

When dealing with OAuth from the server, such as Twitter and Facebook, you most likely will redirect the user to an URL asking for app permission. Usually, after clicking a link, you send the request to the server, via AJAX, and then return the…
pocesar
  • 6,860
  • 6
  • 56
  • 88
11
votes
0 answers

Twitter Web Intents inside iOS/Android Webview - any Redirect/Callback URL?

Twitter Web intents provides convenient JS lib to allow the user to tweets from an external website.

seb
  • 425
  • 5
  • 16
10
votes
2 answers

Twitter API Authenticate vs Authorize

Hi all could you just tell what is the difference between Twitter Authenticate and Authorize $twitterConnect = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET); $twitterToken = $twitterConnect->getRequestToken(); $redirect_url =…
coderex
  • 27,225
  • 45
  • 116
  • 170
10
votes
1 answer

Attempt to get Twitter request_token using Oauth 1.0 keeps giving '215 Bad Authentication' error

I'm trying to get an Oauth request token from Twitter - I'm following their guide (links below) and I've gone over every single step about 10 times but I cannot figure out why I'm getting this error: {\"errors\":[{\"code\":32,\"message\":\"Could…
Joe Morano
  • 1,715
  • 10
  • 50
  • 114
10
votes
3 answers

Twitter Streaming API .NET library

I am currently trying to write some code to consumer the user stream from the Twitter streaming API: http://dev.twitter.com/pages/user_streams I am struggling to connect to it using basic auth and assume (the docs don't say) that OAuth is…
Phil
  • 4,012
  • 5
  • 39
  • 57
10
votes
2 answers

Login with Twitter using Swift and OAuth in ios

I am very new to Swift and IOS. I want to implement the login with twitter account using OAuth in my swift iOS application. I implemented it but I got [{“message”:”Could not authenticate you”,”code”:32}]} error
Rakesh
  • 1,177
  • 1
  • 15
  • 31
10
votes
3 answers

twitter application only authentication java android with twitter4j

I'm trying to get a user timeline from twitter with oauth2 (for application-only authentication) but the result is always null. I don't have experience with OAUTH , and I have looked to a couple tutorials and examples, but with no luck so far. I …
pieter
  • 385
  • 1
  • 4
  • 19
10
votes
2 answers

Twitter Rest API 1.1 search without OAuth

is it possible to search with the new Twitter Rest API without OAuth. I simply want to search for tweets with a given hashtag. For example I call: https://api.twitter.com/1.1/search/tweets.json?%23MyTag where %23 is the encoded "#" However I allways…
sockeqwe
  • 15,574
  • 24
  • 88
  • 144
10
votes
1 answer

Twitter oauth refresh token

I have watched some videos on authenticating using oauth and have gotten the authentication part going but I have the following of questions. Q1- Do access tokens expire? Q2 -Do I have to make the user go through the whole user authentication…
Abdul Rahman
  • 1,294
  • 22
  • 41
10
votes
1 answer

Can I have multiple twitter oauth callback urls

I have created a Twitter application and specified the following url as the callback url: http://www.myapp.com/login However, when a user comes to my site from the url myapp.com (missing the www prefix) the authentication fails. Apparently, I cannot…
George Eracleous
  • 4,278
  • 6
  • 41
  • 50
9
votes
3 answers

Can access token be longer than 255 characters?

When allowing login by OAuth (such as OpenID, Facebook, Twitter, etc), we save the access token given by the Oath provider in mysql database for future authentication. In some tutorials, the column for saving access token is varchar(255) and some…
Googlebot
  • 15,159
  • 44
  • 133
  • 229
9
votes
2 answers

Twitter Authentication through Android's AccountManager classes

I am working on a twitter based app and am trying to incorporate Android's built-in Account support for Twitter. The following code works to popup the confirmation dialog for my app to access twitter but I am unsure of what to pass in as the…
Robby Pond
  • 73,164
  • 16
  • 126
  • 119
9
votes
1 answer

Authentication no longer works after GET to POST change

I used the PHP code below to successfully get the timeline of a Twitter user (REST API / OAuth 1.0a) Now I would like to follow a user on Twitter. I needed to change the GET to a POST request for it and now the code no longer works. Error: [code]…
Tom
  • 5,588
  • 20
  • 77
  • 129
9
votes
5 answers

how to request permission to retrieve user's email using twitter kit version 1.2.0 in ios8?

I have integrated twitter kit in my ios app by following https://dev.twitter.com/twitter-kit/ios/configure this. I could sign-in after authentication and see my twitter name easily but now i want to retrieve my email address so i used…
Mak13
  • 330
  • 3
  • 14