[twitter-dev] Re: collecting followers and friends

2011-03-05 Thread mabujo
Run this in the background - don't do it on page load if you can avoid
it.
Also, if you are using PHP to compare the lists don't use array_diff
as this is very slow on large arrays.

On Mar 5, 8:14 am, amit debnath amitdebnath...@gmail.com wrote:
 I have a site for twitter based tools. One of the options was to enable
 users see the people their non-friend-followers and non-follower-friends.
 The only way I could see to achieve this is to gather and store the complete
 list of followers and friends locally and calculate from that. This is done
 at the time of login(oAuth) . For small accounts it is working ok. But for
 large accounts (one of the accounts for testing with has a total number of  
 followers+friends  3) it is taking from 20 seconds to anything up to 2
 minutes(at 5000 per call, this is taking 6 calls).

 Looking for any suggestions to improve the performance

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Stepping Up And A Modest Proposal

2011-03-05 Thread Clay Graham @ratecred
Hello Twitter Developers,

I am introducing myself to this group for a number of reasons, the
primary one is that I don't want to be a hypocrite, we are going to
have to get more involved, reach out to others for solutions and
ideas, and look to this group for knowledge and wisdom. Any direction,
advice, pointers, etc. are humbly accepted.

RateCred.com has watched this group from afar, but to be honest we
haven't engaged because most of the questions/ideas we see in this
list haven't applied to our use cases technically. That is changing
starting today because we recognize that just as many of you we share
one kindred realty, that many of us has tied our futures to twitter.

Just so you understand the background RateCred.com is a very intense
twitter mashup, our site and mobile applications let you rate any
place you go (Twitter GEO), share your experiences with your twitter
friends (Twitter Social Graph, Twitter Updates) and we require that
our users are twitter users (Twitter OAuth). We love twitter, we love
what twitter represents, how it works, and the company. Almost
everything about twitter we love.

Lately we have been experiencing some challenges with the twitter API
specifically GEO, not in how it works or what you need to do to get it
to do this or that, but in its availability and in the way the team
communicates when and how the service (as well as other API services)
will be available. This may be our misunderstanding so we are trying
to reach out to this group for insight and direction. We know how hard
this stuff is so we want to give the benefit of the doubt. Regardless
we think there is value in coordinating our interests.

We are also looking to this group to start forming an interest group
of companies that have actually tied their business model to twitter,
to form a group that can both collectively communicate with the
various production support and API development teams about our
perspective, recommendations and goals. If this group already exists
please forgive my ignorance, and take our request to join immediately.


Respectfully,


Clay Graham
Founder
RateCed.com
@ratecred
claytan...@ratecred.com

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] beginner help needed with oAuth and xAuth

2011-03-05 Thread Amrit
Hello everyone here in talks. I want to create signing url without
using any library or api. I tried a lot according to 
http://dev.twitter.com/pages/auth
website but I couldnot success. Can I get any nice tutorial regarding
signing url for twitter?

Thanks

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Apps that Site Hack

2011-03-05 Thread nickmilon
These kind of tools do a lot of damage to twitter ecosystem.


On Mar 4, 3:02 pm, Alan Hamlyn alanhamlyn...@gmail.com wrote:
 Hi Dewald,

 In fact you partly answered it yourself.

 Random login CAPTCHA's when logging in to twitter, or the occasional
 one if flagged based on users tweets to have once to fill one in to
 send a tweet.

 Algorithms, especially to to detect accounts that send 98%-100% links
 in tweets.

 Legal account, which I'm sure they are already doing.

 Algorithms like pascal mentioned, to pick up on likely spam behaviour.

 Improving the report spam feature on twitters website, and actively
 encourage other users to report spam.

 Stop the twitter accounts of the twitter spam software from being able
 to run, i.e @tweettankone and their variant accounts which are site
 hacking sites.

 Education to users, that twitter should be used for engagement not to
 spam links and churn followers.

 Change up the site code fields that send tweets, or reliant data to
 have 1000's of variants, so if the site changes too much, or something
 the site hackers rely on, the information will change too frequently.

 Those are a few of my ideas.

 Alan :)

 On Feb 24, 9:38 pm, Dewald Pretorius dpr...@gmail.com wrote:







  Apart from implementing reCAPTCHA on tweet submission, follow, and
  unfollow, I can't see what Twitter can do to prevent that kind of
  abuse (can you imagine the revolt by bona fide users?). How else do
  you determine that it is an actual human and not a piece of automated
  software behind the browser on the user's desktop or laptop? The only
  other option is legally, and that depends on the country of residence
  of the owners of the software. At this point in time, it appears that
  anyone who is able to and have the inclination to write desktop
  software that bypasses the API might have carte blanche to do so.

  On Feb 24, 7:00 am,AlanHamlynalanhamlyn...@gmail.com wrote:

   Spam applications like Tweetadder, TheTweetTank and many others like
   it are currently hacking the website to get round oauth and basic auth
   restrictions - what is Twitter doing to level the playing field for
   serious developers who use oauth and follow Twitter guidelines?

   Many thanks in advance,

  AlanHamlyn
   MarketMeSuite

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] users/lookup.json

2011-03-05 Thread Naresh
hi!
i am very new to twitter API.
my question is:
http://api.twitter.com/1/users/lookup.json?user_id=1401881,1401882
this is example url of twitter, it never works.
and it returns

{

* request: /1/users/lookup.json?user_id=1401881,1401882
* error: Could not authenticate you.

}

could you tell me, how to get friends info, like name, thum,...etc


thanx

-
naresh jonnala.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] follower/friend list

2011-03-05 Thread amit debnath
I have a site for twitter based tools. One of the options was to enable 
users see the people their non-friend-followers and non-follower-friends. 
The only way I could see to achieve this is to gather and store the complete 
list of followers and friends locally and calculate from that. This is done 
at the time of login(oAuth) . For small accounts it is working ok. But for 
large accounts (one of the accounts for testing with has a total number of  
followers+friends  3) it is taking from 20 seconds to anything up to 2 
minutes. 

Any suggestions? anybody?

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: users/lookup.json

2011-03-05 Thread mabujo
This method requires authentication, so you will need to sign the
request with oauth tokens before it will work.

On Mar 5, 4:04 am, Naresh naresh.jonn...@gmail.com wrote:
 hi!
 i am very new to twitter API.
 my question 
 is:http://api.twitter.com/1/users/lookup.json?user_id=1401881,1401882
 this is example url of twitter, it never works.
 and it returns

 {

     * request: /1/users/lookup.json?user_id=1401881,1401882
     * error: Could not authenticate you.

 }

 could you tell me, how to get friends info, like name, thum,...etc

 thanx

 -
 naresh jonnala.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Followers and Friends - How do you really page these lists?

2011-03-05 Thread craigpierce
I searched back, but didn't see anything on this (please feel free to
tell me I'm wrong and point me to the answer)...

Also, someone else *just* raised a similar question, but not exactly
the same, so I'm not going to hijack their thread...

The call to get a user's friends/followers ids returns paged results
up to 5000 ids at a time, but the call to actually get anything useful
about users (lookup) only accepts 100 ids at a time.

A) Can anyone tell me why this is built like this
B) Can anyone suggest a better paging system

I'd rather not build my own system for paging user lists 100 users at
a time if I don't have to - and I'm really hoping I don't have to...

Thanks! Craig

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] beginner help needed with oAuth and xAuth

2011-03-05 Thread brian
http://jaanus.com/post/1451098316/understanding-the-guts-of-twit

On Sat, Mar 5, 2011 at 2:33 AM, Amrit bunkde...@gmail.com wrote:

 Hello everyone here in talks. I want to create signing url without
 using any library or api. I tried a lot according to
 http://dev.twitter.com/pages/auth
 website but I couldnot success. Can I get any nice tutorial regarding
 signing url for twitter?

 Thanks

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Streaming API

2011-03-05 Thread littleark
Hi,

I would like to have a stream of geo-located tweets filtered against
pre-defined keywords.

As stated in the documentation:

Bounding boxes are logical ORs. A locations parameter may be combined
with track parameters, but note that all terms are logically ORd, so
the query string track=twitteramp;locations=-122.75,36.8,-121.75,37.8
would match any tweets containing the term Twitter (even non-geo
tweets) OR coming from the San Francisco area

Any idea how to have logical ANDs?

I found two ways:

1. filter with the locations parameter and then select only those
tweets containing the keywords. Unfortunately with this I will miss a
lot of tweets

2. filter with the track parameter and then find the tweet geolocation
with Yahoo! Placemaker for non-geo tweets. In this case I will have
mostly imprecise locations and a slower service (yahoo! placemaker is
slower than a twitter stream)

Any idea?

carlo

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Followers and Friends - How do you really page these lists?

2011-03-05 Thread craigpierce
For posterity:

I think I have my answer...I just happened to stumble upon these:

statuses/friends
statuses/followers

The namespacing makes these calls not super-intuitive; they're
actually lists of users, not statuses - they just happen to include
the latest status from each user as part of their data.

Maybe this will help out some other poor lost soul out there
somewhere :)

On Mar 5, 10:53 am, craigpierce craigpie...@gmail.com wrote:
 I searched back, but didn't see anything on this (please feel free to
 tell me I'm wrong and point me to the answer)...

 Also, someone else *just* raised a similar question, but not exactly
 the same, so I'm not going to hijack their thread...

 The call to get a user's friends/followers ids returns paged results
 up to 5000 ids at a time, but the call to actually get anything useful
 about users (lookup) only accepts 100 ids at a time.

 A) Can anyone tell me why this is built like this
 B) Can anyone suggest a better paging system

 I'd rather not build my own system for paging user lists 100 users at
 a time if I don't have to - and I'm really hoping I don't have to...

 Thanks! Craig

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: beginner help needed with oAuth and xAuth

2011-03-05 Thread Bess
I search the blog post. Find no results on xAuth keyword.

Our developer book on Twitter API is coming out soon. It should help
out a great deal for beginners. At least on the mobile section I'll
cover the xAuth.

On Mar 5, 10:00 am, brian br...@corahost.info wrote:
 http://jaanus.com/post/1451098316/understanding-the-guts-of-twit

 On Sat, Mar 5, 2011 at 2:33 AM, Amrit bunkde...@gmail.com wrote:
  Hello everyone here in talks. I want to create signing url without
  using any library or api. I tried a lot according to
 http://dev.twitter.com/pages/auth
  website but I couldnot success. Can I get any nice tutorial regarding
  signing url for twitter?

  Thanks

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: users/lookup.json

2011-03-05 Thread NARESH JONNALA
thanx mabujo,

i am trying to fetch data using curl, but i don't know, how to do...
could you give an example please.

is any non-oauth way is there, to fetch friends info?


On Sun, Mar 6, 2011 at 12:20 AM, mabujo jaa...@gmail.com wrote:

 This method requires authentication, so you will need to sign the
 request with oauth tokens before it will work.

 On Mar 5, 4:04 am, Naresh naresh.jonn...@gmail.com wrote:
  hi!
  i am very new to twitter API.
  my question is:
 http://api.twitter.com/1/users/lookup.json?user_id=1401881,1401882
  this is example url of twitter, it never works.
  and it returns
 
  {
 
  * request: /1/users/lookup.json?user_id=1401881,1401882
  * error: Could not authenticate you.
 
  }
 
  could you tell me, how to get friends info, like name, thum,...etc
 
  thanx
 
  -
  naresh jonnala.

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk




-- 
Regards,
Naresh Jonnala

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk