FAQ Database Discussion Community


Twitter API know if tweet has been sent

twitter,social,webintents
Is it possible, using Twitter's Web Intents, to have a link that when clicked : Opens a popup to send a tweet containing the link I have chosen (no problem so far, I have tried that and it works) Then, once the tweet is sent, calls a js or php...

Error installing gem twitter on Ubuntu 15.04

ruby-on-rails,ruby,ubuntu,twitter
Am trying to install twitter gem on Ubuntu 15.04 and this error keeps popping up gem install twitter Building native extensions. This could take a while... ERROR: Error installing twitter: ERROR: Failed to build gem native extension. /usr/bin/ruby2.1 extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h extconf failed,...

Inserting tweets into MySQL DB using Tweepy

python,mysql,twitter
I am trying to use the following Python code to insert parsed out tweets into a MySQL database: #-*- coding: utf-8 -*- __author__ = 'sagars' import pymysql import tweepy import time import json from tweepy import Stream from tweepy import OAuthHandler from tweepy.streaming import StreamListener class listener(StreamListener): def on_data(self, data):...

use twitter iOS client authorization on own server

ios,ruby-on-rails,authentication,twitter,devise
I try to do the same than : use facebook iOS client authorization on own to server, but with twitter. I use SSO with Twitter Kit (Fabric) on iOS. I manage to sign in and get the authToken and authTokenSecret of the user. Then, I would like to send these...

how can i use ruby and twitter tweet from text file

ruby,file,twitter,readfile,tweets
I'm trying to tweet from a text file without getting the extra symbols. My tweets looks like: ["This is a sample of my tweet on twitter"\n] << it includes the symbols and the extra "n". What I'm trying to get is: This is a sample of what I want my...

When adding dependency: CDI deployment failure, Unsatisfied dependencies for type Set with qualifiers @Default

maven,twitter,glassfish,twitter4j,twitter-hbc
When I add the twitter hbc dependency to my pom.xml I'm getting an error. I followed the instructions from here. I don't get it, if it was a dependency problem I should have found a fix on the web but if I comment out that dependency, my server is starting.....

Tweepy: How can I get more than 20 tweets from a user?

twitter,tweepy
According to their docs: API.user_timeline([id/user_id/screen_name][, since_id][, max_id][, count][, page]) Returns the 20 most recent statuses posted from the authenticating user or the user specified. It’s also possible to request another user’s timeline via the id parameter. So how can I get more than 20 tweets from a person's timeline? The...

ImportError: No module named twitter on shell file

python,shell,twitter
So i installed twitter with easy_install twitter my_file.py import twitter ...... ...... When I run my python file directly on the terminal it works fine >python my_file.py However, when I put the above into a shell file run_script.sh python my_file.py I run this file using >sh run_script.sh I get an...

how many apps can I build with one twitter account

api,twitter
I'm using Twitter API to crawl some data. I'm just wondering how many apps I can build with one account to let me bypass the rate limit? Thanks in advance!...

twitter get user profile data

c#,.net,twitter,userinfo
I want to get the user profile data on connect to twitter. I managed to connect and get the access token and access token secret using Tweetsharp Lib. But trying to get the user profile throw an error. So I want to use the Rest Api and just get the...

cannot make my data in small centerd gray boxes

html,css,twitter-bootstrap,twitter
This is the beginning of my html: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"></link> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css"></link> <script type="script" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> </head> <body> <h1>Delta Fresh...

Streaming data with Spring MVC

java,spring,spring-mvc,twitter,twitter4j
I'm looking to set up a Twitter stream using Twitter4J. I plan to be able to search using a keyword. I also would like to use Spring MVC as this is something I've used a lot recently. However, I would like to stream an infinite amount of tweets without stopping...

Console notices relating to dpi CSS usage when using a tweet button

javascript,css,twitter
I'm using the default tweet button like this: <a class="twitter-share-button" href="https://twitter.com/share">Tweet</a> <script> window.twttr=(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],t=window.twttr||{};if(d.getElementById(id))return;js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);t._e=[];t.ready=function(f){t._e.push(f);};return t;}(document,"script","twitter-wjs")); </script> When I visit the console after...

Getting favorite count on a tweet

twitter
I'm using the twitter 1.1 api to get a the timeline of a given account. However i cant seem to find a key with the favorite count of the tweet? can it really be true that this is not part of the current api? and is there anyway to get...

Removing text tweets from dataset in R

r,twitter,rjson
I am working on twitter dataset, I need to remove some tweets concerning a certain word. I have retrieved the tweets concerning this word and I saved those tweets in a variable called "removing". I need now to remove those tweets from my dataset, would anyone tell me how I...

Twitter ruby gem .search request multiple responses

ruby,twitter,twitter-gem
In the following code I specify that I want to make 1 request to the twitter api, but when I puts the output to terminal I continue to receive many responses until I kill the program. How can I limit it to only the specified amount of requests? I am...

Twitter4j Stream to get own profile tweets

android,twitter,twitter4j
I am trying to use the twitter4j api to retrieve my own tweets only (ie, every 3 sec). After using the manual "ResponseList statuses = twitter.getHomeTimeline();" , i encountered a problem which the request rate was capped. The solution i can find is to use stream service. Right now, my...

How To Properly Encode Tweets in Html (with c# hopefully)

c#,angularjs,twitter
I'm programmatically building up a tweet that end in #angularu which of course blocks the html from that point on. What is the proper way to encode a tweet so that it works and gives the full message in html <a ng-href="http://twitter.com/home?status=Dan and John Bringing Their https://angularu.com/ng/session/2015sf/dan-and-john-bringing-their-view-on-the-latest-in-angular Mon 11:00 AM...

How can I “stop” a PHP page from javaScript - meaning mimic the behaviour of closing browser window

javascript,php,twitter
Very new to PHP and javaScript. I put up some code that is mining tweets, trough streaming API. Actually I'm tweaking this code (pasted below) made by Mike Pultz. (thanks!) It is working fine. It consists in two PHP codes. -One is the class actually mining. It handles oAuth, open...

Using Twitter Fabric to retrieve my own account tweets

android,twitter,twitter-fabric
I'm currently using twitter fabric framework and trying to retrieve the list of my own account tweets. I tried searching online to no avail. The example in the document shows how to display a tweet based on tweetID. I do not want that. I do understand that REST client makes...

twitter json formatting in php

php,json,twitter-bootstrap,twitter
I am new to this PHP . I created a account in twitter api and manage to get the data from twitter in the JSON format and would like to extract the text and created_at fields from the JSOn but having no luck even after 3 days and final resort...

Handling 404 and other bad responses with looping twitteR queries

r,twitter
I would like it if my loop wouldn't break if I get an error. I want it to just move on to the next iteration. This example is a minimal example of the error I'm getting and the loop breaking. In my real application I'm iterating through some of the...

Create a page that generates random strings (like tweets) based on a user action

javascript,jquery,html5,css3,twitter
I have a project that requires me to complete the above. Right now I have a file that generates these random strings and all I have to do is edit a HTML file to show these strings based on a user action. I am new to every aspect of this...

Twitter share android titanium with social.js file not working

android,twitter,titanium
I have to share data on twitter for that I have used social.js file it works great on iOS but in android it return access pin only and stuck there. Can some one tell me to how to solve issue

Getting tweets by date with tweepy

python,twitter,tweepy
I pulled the max amount of tweets allowed from USATODAY which was 3000. Now I want to create a script to automatically pull USATODAY's tweets at 11:59PM of every day. I was going to use the stream api but then I will have to keep it running the whole day....

Removing URL features from tokens in NLTK

python,django,python-2.7,twitter,nltk
I'm building a little 'trending' algorithm. The tokeniser works as originally intended, bar a couple of hiccups around URLs, which are causing some problems. Obviously, as I'm pulling info from twitter, there are a lot of t.co URL shortner type links. I'd like to remove these as not 'words', preferably...

Cannot find symbol import com.twitter.sdk.android.Twitter using Fabric

android,twitter,android-studio,android-gradle,twitter-fabric
Completely new to Twitter's Fabric Platform/SDK. I have been trying to integrate it into my existing build.gradle and it's been chaotic so far. When I try to install the "Log in with Twitter" feature via the Fabric plugin, it updates the build.gradle and then during sync throws the following error:...

Java -SpringSocial: Getting Twitter data between two dates

twitter,spring-social,spring-social-twitter
I am using spring social to get twitter data for particular tag say #spring. What I want to achieve is get all data between two dates/timestamp. eg. data between last fetch time and current time. The spring social API allows me to get data betweem two tweetIDs but I failed...

Extracting hashtags from twitter - string in R error

r,twitter
I have twitter data. Using library(stringr) i have extracted all the weblinks. However, when I try to do the same I am getting error. The same code had worked some days ago. The following is the code: library(stringr) hash <- "#[a-zA-Z0-9]{1, }" hashtag <- str_extract_all(travel$texts, hash) The following is the...

How to make the Twitter API returns me over 800 tweets

api,twitter,timeline,tweets,home
How to make the Twitter API (home_timeline) returns me over 800 tweets? For example applications like tweetbot how do it to have more updates in the 3000 home timeline? I think that using a cache system but which one?

ScrollArea and ScrollBar not working

java,twitter,twitter4j
I've been trying to make a java swing based application to retrieve tweets from a user by using twitter4j..the code seems to be working when pretend on the console but not adding ..i've tried adding the scroll area and scroll bar to help with text wrapping and longer texts but...

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...

Parsing JSON response from James Mallison twitter library

php,json,twitter
I am using the Twitter Search API 1.1 to search followers_count I have managed to get the Oauth working with the help of James Mallison at http://github.com/j7mbo/twitter-api-php. Here my code : require_once('TwitterAPIExchange.php'); $settings = array( 'oauth_access_token' => "xxx", 'oauth_access_token_secret' => "yyy", 'consumer_key' => "zzz", 'consumer_secret' => "vvv" ); $url =...

Twitter user stream from server

twitter,twitter-streaming-api
The twitter user stream docs state Note that User Streams are not intended for server-to-server connections. To maintain some metrics (when the user is away) I need to run a user stream from my server. I cant user the public stream API as it does not allow me to track...

Java code to fetch the twitter followers of any user using twitter screen name

java,twitter,twitter4j
I tried to get the twitter followers using the screen name. But i am able to get only my followers screen names where as i am expecting the followers of my followers. But i didn't found any supported method for this. My code is as follows. TwitterFactory factory = new...

Connecting social Networks using Meteor Login Services without Logging in

facebook,twitter,meteor,google-plus,accounts
I want to connect social Networks like Twitter, Google+, Pinterest without logging in - only connecting and saving the access Token and the data in user.services, but using the meteor accounts packages like accounts-facebook or accounts-twitter. For better understanding, at the moment im using accounts-facebook to log the user in,...

google app engine static value

python,google-app-engine,twitter
I am trying to make a Twitter bot in python and google app engine that will retweet myself and some of my friends just for fun. I am thinking about using the Tweepy and get the id of the tweet in my list. If the Tweet ID is larger (meaning...

Twitter SDK requestCode

android,twitter,fabric-twitter
I'm implementing log in with Twitter: https://dev.twitter.com/twitter-kit/android/twitter-login Which utilizes onActivityResult for its callback. This is fine but onActivityResult is multi purpose and one normally differentiates using requestCode. However I can't find anywhere in the SDK how to differentiate this Twitter requestCode. Most Libraries provide an enum or a final static...

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...

Is it possible to use the Twitter API to feed tweets into a local text file? [closed]

javascript,twitter
I am using a projection mapping programme, with part of the project taking text from a local text file, and inserting it into the programme. Instead of manually filling this text file with pre-populated content, is it possible to use the Twitter API to feed in tweets to this local...

iOS: Is it possible to resize Twitter and/or Facebook login button?

ios,objective-c,xcode,facebook,twitter
I want to add Twitter and Facebook authentication buttons to my mobile app. Currently using XCode 6 and the newest SDKs of Facebook and Twitter. I managed to integrate these two buttons into my auth screen, but the sizes are really different, resulting in a really horrible design issue ;...

Twitter Typehead, listing object arrays

javascript,jquery,arrays,twitter
I am having a problem using the Twitter Typehead with an object array. please view the JSBin here http://jsbin.com/buyudaq/edit?html,js,console,output Following is the serialised object array var phoneNumbers = { "data": [ { "phone": "+1 (923) 562-3211" }, { "phone": "+1 (924) 431-3216" }, { "phone": "+1 (932) 411-2223" }, {...

how to display a UIView in a social media post

ios,facebook,swift,twitter,uiview
I don't even know if this is possible but I was wondering if there is anyway you can insert a UIView and all its contents into a tweet or facebook post so when the user sends out a tweet from the app, an image of the UIView is displayed in...

How to Add Call-to-Action Button Inside Tweets via Twitter API

twitter
Will be very thankful if somebody could share their experience how to add call-to-action button inside tweets which posted through Twitter API: POST statuses/update Expected result Subscribe button inside tweet After clicking on this button Subscription dialog appears Thanks for any help...

How to match words in 2 list against another string of words without sub-string matching in Python?

python,regex,string,loops,twitter
I have 2 lists with keywords in them: slangNames = [Vikes, Demmies, D, MS Contin] riskNames = [enough, pop, final, stress, trade] i also have a dictionary called overallDict, that contains tweets. The key value pairs are {ID: Tweet text) For eg: {1:"Vikes is not enough for me", 2:"Demmies is...

Twitter's live streaming API unauthorized(android)

android,twitter,oauth,twitter-streaming-api
I found this old android example code that can filter tweets from Twitter's live streaming API according to the input of user, but the problem is that it uses the basic authorization. Obviously it wouldn't work and I got the "401 unauthorized" error. Here is the original code: package com.teleknesis.android.twitter.livestream;...

How do I customize and use Phirehose functions?

php,twitter,oauth,stream,phirehose
I'm trying to put in a check for Phirehose to stop running after 10 seconds or 100 tweets...basically, I want to be able to stop the script. I was told I could customize the statusUpdate() function or the heartBeat() function, but I'm uncertain how to do that. Right now, I'm...

Getting original tweet-id and user-id from retweet-id

twitter,twitter4j,twitter-streaming-api
I am using Twitter4j to access the streaming API. I am using follow, to get a stream related to a set of users. My problem basically boils down to this: Given a retweet (I have the retweet-id and the user-id of the retweet) in the stream, how can I find:...

HTTP Status 500 - Servlet execution threw an exception (java.lang.ClassNotFoundException)

java,jsp,servlets,twitter
I have been getting this resource not found error and I'm not able to figure out whats wrong with my code. Here is my code. TwitterServlet.java: package com.dhruvil.jsw; import java.io.IOException; import java.util.ArrayList; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.poi.xssf.usermodel.XSSFSheet; import org.apache.poi.xssf.usermodel.XSSFWorkbook; import twitter4j.Status;...

Inserting multiple string into mysql using bind_param

php,mysql,twitter
I'm retrieving tweets from the twitter api, which i'm trying to save in my database however i keep getting an error, which i cant seem to fix. i've checked the number of parameters is correct and everything should be okay, so i dont see why i get following error: Fatal...

Laravel 5 Session variables not persisting after redirects Twitter OAuth

php,session,laravel,twitter,oauth
Using Codebird, I request oauth token here $reply = $cb->oauth_requestToken(array( 'oauth_callback' => 'http://localhost/laravel/public/callback' )); print_r($reply); $cb->setToken($reply->oauth_token, $reply->oauth_token_secret); Session::put('oauth_token', $reply->oauth_token); Session::put('oauth_token_secret', $reply->oauth_token_secret); Session::put('oauth_verify', true); Session::save(); $auth_url = $cb->oauth_authorize(); header('Location: ' . $auth_url); die(); Variables are all correctly put into...

Using Selenium with Scrapy disables the Pipeline feature? How can I re-enable it?

mongodb,selenium,twitter,scrapy
I'm currently coding a Twitter Scraper using Scrapy to scrape and process the data, and Selenium as an automation tool, as Twitter itself is an interactive page so I can "scroll-down" the tweets and get more data in one sweep. Using the MongoDB Pipeline I've set, it should theoretically send...

Is twitter streaming api exactly 1 percent of the whole streaming?

api,twitter,streaming,tweepy
I am using tweepy package to crawl tweets. Just wonder whether the tweets I get are exactly 1 percent of all the tweets in the streaming? Anybody know that? Thanks in advance....

html simple dom get date-time vaule

html,twitter,simple-html-dom
I am trying to get the timestamp of date-time in this html. <span class="js-short-timestamp js-relative-timestamp" data-time="1401528672" data-long-form="true"> 15h </span> Using html simple dom how would I get the value "1401528672" from this html. Yes the value/timestamp will change so I need to get value of [date-time] in the html. Any...

In Ruby, can you create a rescue for twitter for when there is an error it will continue the loop?

ruby,twitter-bootstrap,loops,twitter,rescue
I'm trying to create a rescue that if and when there is an Twitter::Error::NotFound error (such as does not exist) it will just keep going through the loop. Please help, thanks. Below is the code, begin File.open("user_ids.txt") do |file| file.each do |id| puts client.user("#{id}").screen_name rescue Twitter::Error::NotFound => error next #...

Social media functionality on website

javascript,facebook,twitter
Im totally new to integrating social media with a website so this is a bit of a scattershot question. There is no doubt questions on here answering this already but as im not sure what im looking for yet, im not sure how to find them. Okay so my company...

Twitter Cards not expanded by default

twitter,meta,rdfa,twitter-card
I am trying to create Twitter cards using the twitter meta tags (and Open Graph for other sites like Facebook). When I see my twitter feed from others like say NPR News the cards are expanded by default. However when I post the same content - the card is not...

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...

Trying to set the image in sharing at google+, facebook, twitter via HTML

html,facebook,twitter,share
I am trying to make google+, facebook and twitter to show the image I've selected when sharing. I wrote an html code as it should be, but it doesn't work for some reason. That's in the body: <a href="https://www.facebook.com/sharer/sharer.php?u=incodedURL" target="_blank"> <img src="other/facelog.png" alt="Facebook Logo" id="facelog"></a> <a href="https://plus.google.com/share?url=incodedURL" target="_blank"> <img src="other/googlog.png"...

Twitter4J Creating Callback URL That Goes Back To My App

java,android,twitter,callback,twitter4j
I've read through this: Android: Login with Twitter using Twitter4J And the selected answer doesn't make sense in the context that I need it. I want the user to be able to login to their Twitter account from our app, and then, once they've logged in, I want our app...

Twitter = how to embed a specific tweett + comments?

twitter
I'd like to find out how to embed a specific tweet + comments. I know how to embed the whole timeline (with Twitter widgets): <a class="twitter-timeline" href="https://twitter.com/stats_canada" data-widget-id="608870269030137856">Tweets by @stats_canada</a> <script>!function(d,s,id){var...

twitter4j geo streaming latitude/longitude for Hongkong

java,twitter,latitude-longitude,twitter4j
I'm trying to capture tweets using twitter4j's streaming methods from the area of Hongkong. However not matter what latitude or longitude coordinates I choose to do so (from http://www.latlong.net/convert-address-to-lat-long.html) I always get invalid latitude/longitude error. Latitude/longitude are not valid: 22.27, 114.17, 22.35, 114.21 The code I use is otherwise working...

which package does 'import twitter' import?

python,python-2.7,twitter,python-import
I have both twitter 1.17.0 and python-twitter 2.2 installed. They both use import twitter How do I know which one is being imported?...

Twitter iOS User Login

ios,twitter,login,oauth
I've implemented Twitter Login in my iOS app with the following tutorial: https://dev.twitter.com/twitter-kit/ios/twitter-login But after I chose a Twitter account when I log in the first time, the app always defaults to this account. I would like to enable users with multiple accounts to select the Twitter account they'd like...

Installing twitcurl on OS X

c++,osx,twitter,makefile,clang
I am attempting to install twitcurl on OS X and have met with some problems. At first, running make would return the clang error: ld: unknown option: -soname. I looked through the responses from other users with similar problems on OS X and found the following advice: In the makefile,...

How to send twitter data into SQL database using R

mysql,r,twitter
I would like to extract twitter data for more than one day. I have done that but unfortunately the file is large. Putting this data into SQL would decrease the file size significantly. It would also help a lot in the post-hoc analysis. I am not going to post the...

Get tweets for a user in spring mvc

spring-mvc,twitter,spring-social
How to get tweets for a user in spring mvc just like how twitter widget works I dont want to create application as mentioning in http://spring.io/guides/gs/accessing-twitter/. instead need to read without connecting Want to read the top tweets for the specified user and need to display in JSP in custom...

Limit tweepy stream to a specific number

python,python-3.x,twitter,tweepy,twitter-streaming-api
class listener(StreamListener): def on_status(self, status): try: userid = status.user.id_str geo = str(status.coordinates) if geo != "None": print(userid + ',' + geo) else: print("No coordinates") return True except BaseException as e: print('failed on_status,',str(e)) time.sleep(5) def on_error(self, status): print(status) auth = OAuthHandler(ckey, csecret) auth.set_access_token(atoken, asecret) twitterStream = Stream(auth, listener()) twitterStream.filter(locations=[-97.54,32.55,-97.03,33.04]) I have...

Stack level too deep because recursion

ruby-on-rails,ruby,ruby-on-rails-4,twitter
I have a model named Tweet. The columns of the Tweet model are: -id -content -user_id -picture -group -original_tweet_id Every tweet can have one or multiple retweets. The relation happens with the help of original_tweet_id. All the tweets have original_tweet_id nil , whilst the retweets contain the id of the...

Action after tweet has been published

ios,twitter,sprite-kit
I set a button in my game where you can tweet your score. The thing is that when the user just publishes the tweet I want to open a new view and I don't know how to know when the tweet has been published. For publish the tweet I used...

spring-social-twitter, @Value not wiring attribute

java,spring,twitter-bootstrap,spring-mvc,twitter
While extending Spring Twitter Social, I'm using application-test.properties and I can't get @Value to autowire the properties into some fields. DETAILS OF THE ISSUE @Value("${spring.social.twitter.hosts.ads-api}") private String baseUrlApiAds; @Value("${spring.social.twitter.hosts.standard-api}") private String baseUrlApiStandard; application-test.properties in src/test/resources: # spring-social-twitter spring.social.twitter.hosts.standard-api : https://api.twitter.com/1.1/ spring.social.twitter.hosts.ads-api :...

How to get only specific strings or records from Twitter

r,api,twitter,stream
names(st)<-c("id_str", "created_at", "text", "location") parseTweets(filterStream(file.name= "", track=c("climate change"), timeout=10, oauth=twitCred))$st # [1] 6113 214 3649 1444 4483 270 8022 41946 494038 8925 3454 5249 20517 14790 14276 15316 583259 4254 3962 6635 52878 3669 2230 6186 9348 583267 #[27] 46894 17360 18038 3764 I do not want to see the...

Add more items to UITableView during runtime

ios,objective-c,uitableview,twitter
I am currently attempting to page a Twitter Feed, however when I attempt to add the new items received when paging onto the existing NSMutableArray I received this error: Floadt[28482:2207263] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[__NSCFArray insertObject:atIndex:]: mutating method sent to immutable object' *** First throw...

Sending messages from the application to twitter in certain conditions

ios,objective-c,api,twitter
Can application send a message in twitter without user intervention under certain conditions? For example when charging the battery less 10%? please, sorry for bad english!

MongoDB string index that is not text?

mongodb,twitter,pymongo
How does MongoDB index a string that is not identified as text? For example, tweets have many fields that are text, and I create an index for any of them. In my application, I have created an index for when the tweet was written, who wrote it, and the text...

NSDate Organization

ios,objective-c,iphone,twitter,nsdate
I am attempting to display timestamps in the S, M, H format however I get negative numbers on some accounts of the Minutes format. Better shown than said: The tweet by Chris is supposed to be 4m and the tweet by Mina is supposed to be 6m. Here is my...

Click tweet button after changing data-text

javascript,jquery,twitter
I'm trying to change the data-text on twitter share button with the tutorial in here: DEMO But, is there any way to automatically click the "new" tweet button after changing the data-text? cause it has to clicked manually to show the share window...

Cannot Parse Date from Twitter [duplicate]

java,date,twitter
This question already has an answer here: Simple date format in java, Parse Exception 3 answers I´m getting a list of twitter dates via the search API of twitter. String dateString = ((JSONObject)ar.get(i)).get("created_at").toString(); // Ej: "Tue May 12 19:58:26 +0000 2015" String TWITTER="EEE MMM dd HH:mm:ss ZZZZZ yyyy"; SimpleDateFormat...

Change theme for Digits interface

user-interface,twitter,twitter-digits
need some help with the Twitter Digits SDK. I need to implement a customized color scheme for my app, but cannot seem to modify the scheme of the native Digits UI screens. How do we modify these screens?

Twitter No package identifier when getting value for resource number 0x00000000

java,android,twitter,fabric-twitter
I'm trying to implement twitter login in my android app. I've followed the instructions ( https://dev.twitter.com/twitter-kit/android/twitter-login ) but when I call Fabric.with(this, new Twitter(authConfig)); the following exception occur. 06-02 14:03:00.267 5623-5638/it.quepasa W/ResourceType﹕ No package identifier when getting value for resource number 0x00000000 06-02 14:03:00.323 5623-5638/it.quepasa E/Fabric﹕ Could not calculate hash...

Python 2.7 - Tweepy - How to get rate_limit_status()?

python,python-2.7,dictionary,twitter,tweepy
I am working on a twitter App using Python 2.7 and the latest version of the tweepy module. One thing I cannot figure out is how to use the function rate_limit_status() Here is my code: import tweepy, time, sys, random, pickle import pprint # argfile = str(sys.argv[1]) #enter the corresponding...

Optimizing for Social Leaderboards

python,google-app-engine,optimization,twitter,leaderboard
I'm using Google App Engine (python) for the backend of a mobile social game. The game uses Twitter integration to allow people to follow relative leaderboards and play against their friends or followers. By far the most expensive piece of the puzzle is the background (push) task that hits the...

Replying to Tweets Using t for the Command Line

ruby,twitter,command-line,awk
I'm using t for Ruby to tweet from Terminal. I want to be able to scan my timeline, find the tweet IDs then reply to them. The closest I've got is this command that doesn't work. The issue is that the reply command takes two arguments, an ID and a...

AngularJS reload directive template

twitter,angularjs-directive
I'm writing an AngularJS directive to show twitter share button, after every attribute change i need to reload and compile directive template because after calling twttr.widgets.load the contents will be replaced with an iframe contains the button. function TwitterShareDirective($twitterRender, debounce, $compile) { function template() { var element = document.createElement('a'); element.href...

Failed to get request token method POST must have a request body

java,android,twitter,fabric-twitter
I'm trying to implement twitter login in my android app. I've followed the instructions ( https://dev.twitter.com/twitter-kit/android/twitter-login ). Everything is working fine if I have the twitter app installed but if I don't when I tap on the login button I get the exception below. It shoulw open a webview asking...

Ruby, update twitter avatar and background

ruby-on-rails,ruby,image,twitter,avatar
How can I change/update the avatar and the background image using Ruby? client = Twitter::REST::Client.new do |config| config.consumer_key = "xxxxx" config.consumer_secret = "xxxxx" config.access_token = "xxxxx" config.access_token_secret = "xxxxx" end The folder's name is "avis" ...it contains jpg files. avis = Dir.entries("avis") avi = avis.sample puts client.update_profile_image(avi) My response is:...

Using Ruby and Twitter can I gather ALL of a user's timeline?

ruby,twitter,scrape,timeline,tweets
I'm trying to retrieve a user's timeline. The api says you can get (at the most) 3,200 tweets. I only seem to know how to get 20 using this code: def gather_tweets_from(user) tweets = [] file = File.open("tweets_from.txt","w") client.user_timeline(user).each { |tweet| file.puts tweet.text } end gather_tweets_from(user) Please help me out,...

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 to embed twitter timeline widget in HTML

html,twitter
I am trying to show twitter timeline of my website. I have created a widget from https://twitter.com/settings/widgets . twitter give me a code to embed my html file. This is the code <a class="twitter-timeline" href="https://twitter.com/alamin0611" data-widget-id="598420614932779008">Tweets by @alamin0611</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)...

How to use Firebase Twitter Authentication with React Native?

twitter,firebase,react-native
How to use Firebase Twitter Authentication with React Native? I tried both of the code below in reference to https://www.firebase.com/docs/web/guide/login/twitter.html var Firebase = require("firebase"); var App = React.createClass({ render: function() { return ( <View> <Text onPress={this._handlePress}> Twitter login </Text> </View> ); }, _handlePress: function () { var myApp = new...

Python encoding issue when trying to parse JSON tweets

python,json,twitter
I am trying to parse out the tweet and username sections of the JSON object returned from Twitter using the following code: class listener(StreamListener): def on_data(self, data): all_data = json.loads(data) tweet = all_data["text"] username = all_data["user"]["screen_name"] c.execute("INSERT INTO tweets (tweet_time, username, tweet) VALUES (%s,%s,%s)" , (time.time(), username, tweet)) print (username,...

How to extract hashtags (or other Arrays) from Twitter Tweets in Apache Spark

json,twitter,apache-spark,apache-spark-sql,arraybuffer
I am trying to do analysis on Twitter Tweet data with Apache Spark from a file of JSON Tweet objects. Here's how I'm loading it in with Spark's jsonFile method: val sqc = new org.apache.spark.sql.SQLContext(sc) val tweets = sqc.jsonFile("stored_tweets/*.json") tweets.registerTempTable("tweets") Next, I sample only the hashtag entities with the following...

Tweepy location on Twitter API filter always throws 406 error

python-2.7,twitter,geolocation,tweepy
I'm using the following code (from django management commands) to listen to the Twitter stream - I've used the same code on a seperate command to track keywords successfully - I've branched this out to use location, and (apparently rightly) wanted to test this out without disrupting my existing analysis...

Twitter: Get followers from multiple users at once

r,twitter
I am working on a project where I need to find the reach of some social events. I want to know how many people who were exposed to comments on a festival called Tinderbox in Denmark. What I do is to get the statusses on Twitter including the word "tinderbox"...

Get Twitter's profiles using Java

java,twitter,profile,twitter4j
I'm doing an app which using Java with Twitter4j, I want to access to other Twitter user's profile information (id,name, etc) but these users are not followers or friends of mine. Now I only can access of my follower's and friend's profiles. Here is my code (to access to my...

How to retweet using PHP Twitter API?

php,twitter
HI I have searched over the internet for some example how to retweet, but with no success. If you go to the demo, you will see that I got a lot of tweets from a specific account, but now I have no idea how to retweet by pressing the button...

How to manage rate limiting with twitter in node js?

javascript,node.js,twitter,rate,rate-limiting
I have been working with the twitter api. I am trying to log some tweets from a group of accounts. There are 250 accounts that I am tracking. This of course exceeds the rate limit. The code for the data collection is below: docs.forEach(function (doc) { client.get('statuses/user_timeline', { screen_name: doc.screen_name,...

Drawing a dynamic graph that changes in real time [closed]

java,swing,twitter,awt
I have this code ..it prints real time tweets based on a filter applied by me and searches for the following sub strings in the tweet, if there then that particular counter specific to that sub string gets incremented. Now , I want to draw a graph taking these 2...

twitter bootstrap won't change my style

html,css,html5,twitter-bootstrap,twitter
I have this website (java generate html) I want to add twitter bootstrap for nicer design, to look like this: here is my try: <html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><h1>Delta Fresh Samples:</h1><p>save date: 12:28:21 31-May-02015</p><div class="jumbotron" id="distance_small"><h3>distance small</h3><a...

Cloudera Twiiter Hive Query failure

twitter,cloudera,hadoop-streaming
Team, Curious to know if anyone succeeded in executing query for Twitter Cloudera Example? I added mentioned SerDe Jar in Beewax file resources as Jar, still I am getting the error for any query. Query: SELECT t.retweeted_screen_name, sum(retweets) AS total_retweets, count(*) AS tweet_count FROM (SELECT retweeted_status.user.screen_name as retweeted_screen_name, retweeted_status.text, max(retweet_count)...