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

How to use OAuth with Forms auth

What solutions are out there for combining a Form auth with a OAuth auth ? Use Case: There is an website where a user would login with a username and password and after he is auth a token will be provided, which enables access to different resources…
Daniel
  • 1,225
  • 2
  • 15
  • 31
8
votes
5 answers

Error Code 220 - "Your credentials do not allow access to this resource" When tryig to get retweets

When i try to get https://api.twitter.com/1.1/statuses/retweets/21947795900469248.json with my authorized credentials (oauth), i'm getting: { "errors": [ { "message": "Your credentials do not allow access to this resource", "code": 220 } …
hardc0der
  • 449
  • 2
  • 7
  • 13
8
votes
5 answers

ROAuth no longer used in favor of httr? [Twitter API]

I'm running R Studio on an AWS "Ubuntu Server 12.04.2 LTS" and accessing R Studio via my browser. When I try to authenticate at the Twitter API using the package ROAuth with the code: credential<-OAuthFactory$new(consumerKey="xxxxx", …
yumba
  • 1,056
  • 2
  • 16
  • 31
8
votes
2 answers

Twitter OAuth 1 POST requests not working

I am creating an application for iOS and I am using this OAuth library. GET requests seem to work fine but as soon as I try to make POST requests I get the following error : [code 32] Could not authenticate you. Now I am not quite sure what is…
the_critic
  • 12,720
  • 19
  • 67
  • 115
8
votes
6 answers

update_with_media using abraham's twitteroauth

I'm trying to implement an upload_with_media request from ajax using Abraham's twitteroauth library (TwitterOAuth v0.2.0-beta2). I've had no problems with basic posts but when I try to include media I get this as a…
Mulberry
  • 543
  • 1
  • 6
  • 11
7
votes
2 answers

Spring Social Twitter Oauth

I want to use spring social to develop an twitter app which will update status and upload photos.I am not able to understand how to do Oauth authentication using Spring social.All examples I saw talks about hardcoding the accesstoken which would…
7
votes
3 answers

Invite twitter friends to site?

Does twitter have something similar to facebook application invite pop-up? In facebook you can write this: FB.init({ appId : 'xxx', status : true, cookie : true, oauth: true }); FB.ui({ method: 'apprequests', …
SharkTheDark
  • 3,089
  • 4
  • 24
  • 29
7
votes
1 answer

Should you store Twitter OAuth oauth_token and oauth_token_secret?

I'm trying to implement a "Login with twitter" functionality into my site and I've been digging up some tutorials on it. Correct me if I'm wrong, the oauth_token and oauth_token_secret values changes whenever a user requests for them. Also I…
JulesChiam
  • 73
  • 1
  • 3
7
votes
3 answers

How to get twitter followers using Twython?

I want to get a list of twitter followers/following of a particular user, when their screenname or user.id is specified. Can anyone please give the code snippet for it? Thanks.
Nazim Zeeshan
  • 713
  • 1
  • 12
  • 20
7
votes
1 answer

Not able to register webhook via postman in twitter app

https://api.twitter.com/1.1/account_activity/all/prod/webhooks.json?url=https://test.com not working I have followed all steps to create a new application and getting consumer key, secret keys and also token details and try to create webhook via…
Kannan Thangadurai
  • 1,117
  • 2
  • 17
  • 36
7
votes
3 answers

PHP - Twitter API (OAuth) with pagination not working properly

I have integrated Twitter API (Twitter OAuth) to get latest feeds of particular company account and here below is my code what I have done so far (https://tomelliott.com/php/authenticating-twitter-feed-timeline-oauth).
Mittul At TechnoBrave
  • 1,142
  • 3
  • 25
  • 70
7
votes
2 answers

TwitteR r package: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found

I have updated my OS to Ubuntu 18.04 recently and twitteR R package is not working anymore. I am having the following error message during setup_twitter_oauth. > setup_twitter_oauth(api_key,api_secret) [1] "Using browser based authentication" Error…
small_lebowski
  • 701
  • 7
  • 23
7
votes
0 answers

Do I need to encrypt Oauth token before storing it in database?

I just got my twitter oauth token (OAuth 1.0a), so before I store it in database, I have this question: do i need to encrypt it? A similar question was posted here. And the answer said: So, getting just the user's access_token from your database…
Sam Chen
  • 1,933
  • 16
  • 24
7
votes
4 answers

Twitter API responds with "Your credentials do not allow access to this resource" while calling statuses/update.json

I'm using Hybridauth 3 in my PHP app to make some periodical tweets on behalf of my account. The app has all possible permissions. I'm giving it all permissions when it asks for them on the first auth step. After that Twitter redirects me to the…
kumade
  • 541
  • 2
  • 9
  • 18
7
votes
2 answers

nodejs https#request fails where identical curl request succeeds

I am trying to connect to public stream endpoint of twitter api. When i ran example parameters i got from twitter api test tool in nodejs i get 401 unauthorized error below you can see my nodejs example request 'use strict'; const https =…
nikoss
  • 3,254
  • 2
  • 26
  • 40