twitter-oauth

Twitterizer- The remote server returned an error: (401) Unauthorized

懵懂的女人 提交于 2019-12-07 18:23:37
问题 I'm following Ricky's Twitterizer example (with some modifications on my end), but I'm getting a "401 Unauthorized" exception when I try to send the authentication request: {Twitterizer.TwitterizerException: The remote server returned an error: (401) Unauthorized. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse() at Twitterizer.WebRequestBuilder.ExecuteRequest() at Twitterizer.OAuthUtility.GetRequestToken(String

Share video on twitter via android app

孤人 提交于 2019-12-07 14:19:25
问题 I successfully shared text/img on twitter with my android application, but now I've need to share VIDEO on Twitter via my app. Is there any possible lib to achieve that? Any suggestions on how to share video on twitter via my application are welcome. PS: A link to some tutorial would be great. 回答1: Improvising the AndroidEnthusiastic's answer,below is working code for Sharing video on twitter via android app File f=new File(filepath); Intent shareIntent = new Intent(android.content.Intent

Twython OAuth1 issues, 401 error using example code

爱⌒轻易说出口 提交于 2019-12-07 13:23:33
问题 I'm trying to setup a stream using the latest version of Twython with Python 2.7.3. I'm trying to reproduce the example in the streaming docs which depend on the OAuth1 docs. Using the following code yields 401 errors until I kill execution: from twython import Twython from twython import TwythonStreamer class MyStreamer(TwythonStreamer): def on_success(self, data): if 'text' in data: print['text'].encode('utf-8') def on_error(self, status_code, data): print status_code APP_KEY =

Twitter Error Could not post Tweet

蓝咒 提交于 2019-12-07 08:59:29
问题 What could be this Error? Could not post Tweet. Error: 403 Reason: Status is a duplicate. actually this is a edited message . i get error code as 403 and Reason as Status is a duplicate . 回答1: Twitter checks messages if they are duplicates of the previous and does not accept them a second time. So for testing you need to generate new messages (=content) each time. This is documented somewhere at Twitter, but you can also read about on other sites. 回答2: The status is a duplicate, probably

sending JSON object using POST Methods

假如想象 提交于 2019-12-07 07:44:40
问题 @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent in=getIntent(); Uri uri=in.getData(); // l.setText(uri.toString()); String p=uri.getQueryParameter(OAuth.OAUTH_VERIFIER); CreateFolderActivity.m_provider.setOAuth10a(true); try { CreateFolderActivity.m_provider.retrieveAccessToken(p); } catch (OAuthMessageSignerException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (OAuthNotAuthorizedException e) { // TODO Auto

Handling users that exist, but try to login through Facebook OAuth / etc

早过忘川 提交于 2019-12-07 07:31:17
问题 I've got a decent set of existing users on my website who login via their emailaddress as their username. I'm setting up Facebook OAuth mechanism to allow new users to sign up more conveniently, but I'm not sure how to handle the scenario when a user who already has an email address registered with our system and now tries to login via Facebook. Should I consider him the same user? Should I treat him like a new user? The situation is more complicated by the fact that I dont validate their

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

拜拜、爱过 提交于 2019-12-07 06:33:23
问题 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 'authorized' to access a limited set of the tweets (in this case, only the 32 most recent). library(twitteR) reqURL <- "https://api.twitter.com/oauth/request_token" accessURL <- "https://api.twitter.com/oauth/access_token" authURL <- "http://api

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

可紊 提交于 2019-12-07 06:27:18
问题 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 statuses/user_timeline is 200 tweets. How do I loop through the results to fetch the maximum number of 3,200 tweets? I read something about making multiple GET requests, but I'm not sure how to do that. It seems the number of tweets fetched varies randomly, and

Twitter OAUTH - returns response code of “0”

ぐ巨炮叔叔 提交于 2019-12-07 04:44:33
问题 I've tried using Matt Harris' Twitter OAUTH library (https://github.com/themattharris/tmhOAuth) replacing default data with my keys and tokens, but for some reason I can't get a valid response code. The url I'm testing with ends with a port (8888), but I'm not sure if that is to do with it. I'm tailing the PHP log and there are no errors. $tweet_text = 'Hello world!'; print "Posting...\n"; $result = post_tweet($tweet_text); print "Response code: " . $result . "\n"; function post_tweet($tweet

Submitting to Twitter with Classic ASP

时光毁灭记忆、已成空白 提交于 2019-12-07 01:20:39
I am trying to implement twitter posting on a website. when a user posts an alert and they check off "submit to twitter" I want to send the contents of the box (140 chars of it) to the associated twitter account. So I've done the following: Registered a new app in twitter Gotten all of my tokens/keys Set up the following library: http://scottdesapio.com Changed all of the parameters per the instructions Every time I try to submit, though, I'm getting an "Could not authenticate with OAuth" error. I'm trying to do this all in one go, so I'm not grabbing the token from twitter but filling in both