FAQ Database Discussion Community


Unable to obtain token using Abraham's TwitterOAuth for PHP; HTTP 500 returned

php,twitter,oauth,twitter-oauth
I am attempting to use @abraham's TwitterOAuth 0.5.3 library for PHP, but when I make a request to request a token for the 3-legged authorization, I receive an HTTP 500 as a response. Here is how I have the code set up in PHP: <?php /* Start session and load...

laravel - get value from url

php,laravel,twitter-oauth
I know that this might be a off question or can be duplicate but after searching a lot I decided to post this question. I am using Socialite with laravel and I am still a newbie to it. I decided to have twitter login. I did everything but at last...

Getting “Could not authenticate you” at connection stage with Abraham's TwitterOAuth

php,twitter-oauth
I'm trying to let users log in to my site using a simple twitter log in. I've tried following the instructions on https://twitteroauth.com/redirect.php but that came up with an "Bad Authentication Error" until I removed the getenv() from the keys. Here's my code: require "twitteroauth/autoload.php"; use Abraham\TwitterOAuth\TwitterOAuth; define('CONSUMER_KEY', '<<MY KEY>>');...

How to retrieve a big amount of tweets

twitter,twitter-oauth
I´m trying to retrieve a big amount of tweets, like 1000 or 3000 per minute, now I´m using the public API of twitter with the URL: https://api.twitter.com/1.1/search/tweets.json?q=#[email protected]&since=15-05-2015&count=100&result_type=recent but the problem is that I need more than 100 tweets because Twitter only supports 180 request every 15 mins, and always I...

Twitter OAuth - Invalid or expired access token

php,cakephp-2.0,twitter-oauth
I am trying to share post using twitteroauth with latest version. Below is my code. require APP."Vendor/twitteroauth-master/autoload.php"; // twitter v0.5.1 SDK if(isset($_REQUEST['oauth_verifier'])) { $request_token = []; $request_token['oauth_token'] = $this->Session->read('twtr_oauth_token'); $request_token['oauth_token_secret'] = $this->Session->read('twtr_oauth_token_secret'); /* If denied, bail. */ if (isset($_REQUEST['denied'])) { exit('Permission was denied. Please start over.'); } /* If the...

Automated httr authentication with twitteR , provide response to interactive prompt in “batch” mode

r,twitter-oauth,batch-processing
I am using the R package twitteR to post items to Twitter. I put everything inside of a function and it works fine. However, I would like to run the function without being prompted for a response, and I haven't figured out how to do that. Any suggestions? Here are...

How to wrap oAuth headers in clj-http?

oauth,clojure,twitter-oauth,clj-http
I'm trying to post a twitter status update with clojure... but this probably really is a question about oAuth headers, and using it through the wonderful clj-http library. I've used clj-http before for basic-auth and other type of headers and it was fairly straightforward. The Authorization: Bearer ... was a...

Syntax error while using TwitterAPI for OAuth

python,twitter-oauth
I am trying to read tweets using TwitterAPI module provided in python but I am not able to successfully execute through OAuth process. >>> from TwitterAPI import TwitterAPI >>> api = TwitterAPI(sgKlULRabMMK8LWL1xlyQZ5Tp, 9CJQLJeJy1zab4Vb6z8bBo7danOYpgXmZRLAM0sQ8TWjgzeomr, 2478453955- DoOmd6G10VYvKNEKupbcNAxxdYrWCainf8URjDF, 00nxI4KDE7DekFcUDuUr60ziTuk03V9YQafuIYz7dYOUP1) File "<stdin>", line 1 api = TwitterAPI(sgKlULRabMMK8LWL1xlyQZ5Tp, 9CJQLJeJy1zab4Vb6z8bBo7danOYpgXmZRLAM0sQ8TWjgzeomr,...

How would I get my App whitelisted on Twitter to get user email?

ios,twitter,twitter-oauth,fabric-twitter
I am developing an iOS App and want to request a user to share his/her email address. I have used Twitter kit framework for authenticating user. That part of my App has been done successfully. Now, I want to request user email. I have referred to Twitter developers documentation telling...

How do i retrieve values (Message) and (Code) from the reply of twitter api?

php,oauth,twitter-oauth
I am using codebird to post update using php, that i am doing successfully until when i get this message as reply by oauth for failure object(stdClass)[2] public 'errors' => array (size=1) 0 => object(stdClass)[3] public 'code' => int 187 public 'message' => string 'Status is a duplicate.' (length=22) public...

How do I add media to a Tweet using Parse.com and PFTwitterUtils?

ios,twitter,parse.com,twitter-oauth,nsurlrequest
I am trying to hit the media/upload endpoint to upload an image to twitter. I am signing the request with Parse.com's PFTwitterUtils class. Posting a tweet to the statuses/update works perfectly, but the media/upload endpoint keeps returning an authentication error: { "errors": [ { "message": "Could not authenticate you.", "code":...

Twitter kit - iOS

ios,swift,twitter,xcode6,twitter-oauth
I thought Twitter Kit was supposed to help developers integrate Twitter in a few lines of code. The online documentation is poor to say the least. I am simply trying to display a single user's timeline in my app within a table view controller. I want read only, guest only...

How should I authorize twitter on a clients website?

twitter,twitter-oauth,linq-to-twitter
I am using Linq-to-twitter on a website I am working on at the moment. All I want to do is grab my clients latest tweets and list them on the site. I have created an app in my own twitter account for the client. I cannot work out if I...

Get user detail from TwitterOAut (Like email, birthdate and name)

php,codeigniter,twitter-oauth
I am stuck how to get detail data from twitter API. I am using this library I have success until user can login, but i can't get detail user who login like (full name, email and birth date) i just can get (Username and user_id)...

How to getIntent().getData(); on Fragment

android,android-fragments,twitter-oauth,twitter4j
On my application is use login with twitter, in example code work in Activity but my app use work in Fragment Click login with twitter button Go to web browser for Authorize application Back to application Feeds(use fragment) & show Toast twitter_id How to edit error on Uri uri =...

How to make User logout from twitter fabric ios

ios,twitter,xcode6,twitter-oauth
I have made a basic app using Twitter's fabric that allows user to tweet within my app and Provide Login With Twitter.Every things works a I Wanted. How my app Works If the user doesn't logged in to twitter my app allows him to login and if he is login...

Suddenly code to get twitter login url stopped working

php,twitter,zend-framework2,twitter-oauth
Suddenly the code to get Twitter login URL stopped working. Error returned by generated URL to get outh_token is: <error code="32">Could not authenticate you.</error> URL generated to get outh_token is:...

Class not found PHP

php,class,twitter,directory,twitter-oauth
I used THIS twitter librabry and getting this error. Can anyone tell where i am going wrong ? ERROR Fatal error: Class 'Abraham\TwitterOAuth\Config' not found in D:\wamp\www\Abraham\TwitterOAuth\TwitterOAuth.php on line 17 PHP <?php require_once("Abraham/TwitterOAuth/TwitterOAuth.php"); //Path to twitteroauth library you downloaded in step 3 //keys and tokens initialised function getConnectionWithAccessToken($cons_key, $cons_secret, $oauth_token,...

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

twitter,twitter-oauth,xcode6.1,ios8.1
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 TWTRShareEmailViewController which presents user a share email view which returns null. I went through...

How to reply a tweet using the Twitter gem?

ruby,twitter,twitter-oauth
r = 569186681850601472 client.update('@ooidesigns work', in_reply_to_tweet_id: r) I'm trying to reply a tweet using the twitter gem and the Client (Twitter::REST) class, but only the the message is tweeted and it does not reply the tweet. Any help is appreciated...

Twitter OAuth : Invalid or expired token [its NOT duplicate]

php,twitter,oauth,twitter-oauth
Before anyone goes in a hurry and mark this question as Duplicate, let me tell you that ITS NOT DUPLICATE I have already checked similar question like this, this, this and this, but those are all 2 years old and the library has been changed too much since then so...

Twitter abraham twitteroauth constantly asking for permission

php,twitter,twitter-oauth
I'm using the abraham / twitteroauth to allow users to login through via their Twitter accounts. At the moment I can create the link, have them go to the link, authorize permission for the app to use their details, return to the site and save their user_id and access tokens...

twitter API search/tweets - How to filter to search user-relevant tweets using query operator?

search,twitter,twitter-oauth
The default is apparently to search all public tweets. I am trying to use the search API to return tweets from only the user's followers, or from the user's "twitterfeed", or both. In the search manual (https://dev.twitter.com/rest/public/search) it says I am able to include a "query operator" of source:twitterfeed to...

twitter login not working on my server

twitter,twitter-oauth
When I try to login from server [http_code] => 401 [url] => https://api.twitter.com/oauth/request_token [host] => https://api.twitter.com/1.1/ [timeout] => 30 [connecttimeout] => 30 [ssl_verifypeer] => [format] => json [decode_json] => 1 [http_info] => Array (..... When I try to login from my Localhost its working fine [http_code] => 200 [url] =>...

Get user profile details (especially email address) from twitter in iOS

ios,twitter,twitter-oauth,acaccount,acaccountstore
I have been searching since couple of days on how I can get user details based on his/her Twitter account. Now first of all, let me explain what I want to do. In my case, user will be presented an option to Sign-up with Twitter account. So, based on user...