[twitter-dev] SSL and pulling profile images causing Partially Encrypted Error

2009-06-24 Thread Michael Sullivan
This is a common problem.
My app is secured with an SSL certificate.
But if I use the twitter API to display user profile image, it causes SSL to
display exclamation point and error  Connection Partially Encrypted.
This sucks.  But the amazon url that user profile images come from can also
work with https.  Is their a way to pull in https natively or do i have to
create my own function to construct the url and/or copy images to my server
before displaying?

 Thanks for suggestions.

sull


[twitter-dev] Re: SSL and pulling profile images causing Partially Encrypted Error

2009-06-24 Thread Michael Sullivan
I went with a function to explode the aws image url to detect if it was http
or https and reconstruct url to use https if needed.  profile image still
shows up and my SSL lock is clean and no error messages when viewing
certificate.
small detail but might be useful to someone.

On Wed, Jun 24, 2009 at 1:36 AM, Michael Sullivan sullele...@gmail.comwrote:

 This is a common problem.
 My app is secured with an SSL certificate.
 But if I use the twitter API to display user profile image, it causes SSL
 to display exclamation point and error  Connection Partially
 Encrypted.
 This sucks.  But the amazon url that user profile images come from can also
 work with https.  Is their a way to pull in https natively or do i have to
 create my own function to construct the url and/or copy images to my server
 before displaying?

  Thanks for suggestions.

 sull



[twitter-dev] Re: OAuth Example in Mac OS X

2009-06-24 Thread Abraham Williams

On Wed, Jun 24, 2009 at 01:11, Supportsupp...@yourhead.com wrote:
 Having users enter username and password in your application mostly
 defeats the purpose of OAuth. Some say it does not matter since you
 should only install trusted apps on your computer but that is a
 discussion that has been hashed out many times before in other
 threads.

 I see your point, of course.  But can't quite believe that you're suggesting
 that I launch a web-browser to perform each authentication.  Is that what
 you're suggesting is the preferred mechanism?
 That seems a tad cumbersome for a single account, but if you're trying to
 set up a few that dance would get old in a hurry -- can't we do better?


It can be cumbersome. In most cases the dance only has to be performed
once per account while the applications settings are present. So for a
reinstall of an OS or if uninstalling the application clears the
preferences the dance would have to be repeated.

The basic purpose of OAuth is to allow access to Twitter without
having to give out your password. Twitter *can not* verify this unless
the user authorizes through one of their properties which currently is
web only.

 there is no point in asking for a username since that should just be
 populated after the OAuth dance is finished.

 I think my original intent was that potentially you might already have a
 stored access key for that account locally and you could use that instead of
 going through the dance again.  But I think you're probably right.


Most applications I've used display a list of authorized accounts and
you can just choose the one by name. OSes already provide user
accounts to restrict access to applications.

 You might want to look at the new PIN based OAuth flow under desktop
 clients: http://apiwiki.twitter.com/Authentication

 I did.  I couldn't envision how this was supposed to work in a real-world
 app.  I've read about it dozens of times.  It seemed to me that it was maybe
 intended for mobile?  Does anyone know of another shipping, real-world
 desktop app that uses this mechanism for user-authentication?


Check out Yammer's ( https://www.yammer.com/ ) desktop application.
They use pin based OAuth for their own service. I don't know of a
Twitter desktop app that currently users PIN based auth but it is the
same flow.


 I'm not developing desktop OSX applications yet but I am all for more
 opensource code.

 If the suggested pattern is open a browser for every login then my demo
 here is pretty much pointless.  So there's no reason to bother opening my
 code.  I'll just give up, go back to basic mode, praying twitter doesn't
 shut it off.  The open a browser every time is not a reasonable
 alternative.  It would give old apps that are grandfathered into basic
 authentication such a significant usability advantage that it would not be
 worth attempting a competitor.
 If an in-app-web-view is viable, then I'll continue down this road and
 release this as open in a week or so.


Something to keep in mind is if Twitter changes their authorize page
it could brake apps using in-app-web-view until a new version can be
shipped. In theory someone who never reinstalls OSes or applications
could use an application for years with only performing the jump to
browser dance once.

 Hope this helps.

 Very much.  Thanks,
 Isaiah


Hope this is informative. :)
Abraham

-- 
Abraham Williams | Community Evangelist | http://web608.org
Hacker | http://abrah.am | http://twitter.com/abraham
Project | http://fireeagle.labs.poseurtech.com
This email is: [ ] blogable [x] ask first [ ] private.


[twitter-dev] My updates not apearing in the search of trend topics

2009-06-24 Thread Profulla K Sadangi
Hi,
I am currently using Twitter4J API to post some status message to Twitter.
Initially I could able to see my message in the search topic pannel.  But
since 2 day I am experiencing some isue. Even though I am posting message I
am not able to see in the Search list (for ex I click iPhone trend).

Can I check somewhere whether my account blocked or anything?


I could able to see all message, and able to update the status normally.

Thanks!
Praful


[twitter-dev] Help styling twitter in message link URLs as icons instead of text

2009-06-24 Thread jefbak

I  am trying to figure out what css/script would be required to take a
link posted in a tweet and style it so that it shows as an icon
instead. This way we can display our twitter stream on a web page with
nice graphics instead of text URLs showing up in tweets that have
links.

Has anybody tried this? I have seen an example here:
http://www.oberlin.edu/


[twitter-dev] Re: tool to let you know when twitter name is available

2009-06-24 Thread sull

nice.
i've used http://www.changedetect.com for this in the past.
will give your service a try.


On Jun 24, 2:22 am, drew pushespr...@gmail.com wrote:
 Hi everyone,

 I wrote a quick tool to email you when the Twitter name you want is
 available:http://www.tweettaker.com/

 It seems Twitter currently might not be deleting inactive accounts,
 but they plan to resume automatically deleting them in the future.

 Any feedback is appreciated.

 Thanks,
 Drew


[twitter-dev] Re: Search API to require HTTP Referrer and/or User Agent

2009-06-24 Thread feesta

Hi all,
I'm fairly new to app development and am working with Google Appengine
at the moment. My app (http://www.twitwheel.com/) makes two calls to
the search API for each page view. I've just added the user agent to
my urlfetch calls. Do I still need to worry about the 100/hour rate
limit? I've only just started testing and am open to alternatives and
suggestions.
thanks!
-Jeff Easter


On Jun 17, 4:41 pm, Dewald Pretorius dpr...@gmail.com wrote:
 Setting theuseragentis not only in the best interest of Twitter.
 It's in your best interest as well.

 I've been setting myuseragentfrom almost day #1 of my service, and
 on several occasions it has helped me to get quick response and issue
 resolution from the API team for both REST and Search API issues,
 because they could easily locate and isolate my calls in their access
 logs.

 This is something only the spammers need to worry about. For bona fide
 services this is a big plus.

 Best,

 Dewald


[twitter-dev] Re: What causes suspension?

2009-06-24 Thread capt.taco

As someone who is currently suspended (@capttaco) and has been
suspended for over a month, let me add some of own experience to the
conversation.

First, I'm not a spammer, nor have I promoted anything offensive or
disingenuous. I've a software developer, that started using Twitter
three years ago when I attended C4[1]. As far as I can tell, my
suspension was the result of having a website hacked.

The Facts:
- Inside of my profile, I linked (as do several people) to my personal
website.
- Over a month ago, the site running wordpress, was hacked and a
malicious link was injected into the top post of my blog.
- Overnight (EST) on a Sunday, the site was marked by Google as
malicious and my twitter account was suspended.

Solution attempts:
1) Upon realizing my site was hacked, I took down the wordpress blog,
used Google's webmaster tools to request a review and the malicious
warning was removed within a few hours. I sent a support request to
Twitter notifying them of how I resolved the issue.

2) After 2 days without a response, I tried logging into my twitter
account. I realized that even though I was suspended (and therefore
couldn't post), I was able to modify my profile. So, I changed the
link in my profile to another site (that Google didn't think was
malicious) and sent another support request. Still no response.

The lack of customer support from Twitter has been appalling. I enjoy
twitter, as a user and hopefully one day as a developer (which
unfortunately has been halted, since I can't access my account at all
from an API). I'm frustrated, but not nearly has high profile as Louie
Mantia. I even tried having some friends intervene (to no avail):

http://stationinthemetro.com/blog/2009/5/26/twitter-suspension-please-help-rob-rhyne.html

I'm a licensed user of Twitterific, Birdhouse and Tweetie (both Mac
and iPhone), which are useless with a suspended account.

Also, FYI (to developers), when you're account is suspended the API
sends back a generic authentication message that The user is not
authorized. It leaves little opportunity for developers to
differentiate from a suspended account and a bad authentication.


[twitter-dev] Re: Search API since_id doesn't work with filter:links

2009-06-24 Thread Chad Etzel

Hmm, yes. I am seeing the same thing with the geocode: and source:
modifiers. Is this a bug?
-Chad

On Wed, Jun 24, 2009 at 7:57 AM, Mojosaurusish...@gmail.com wrote:

 Hi,

 My script polls Twitter APIs once every 15 seconds with a query like
 http://search.twitter.com/search.atom?q=video%20filter:linksrpp=100since_id=2309008249

 Starting 2009-06-23, this API returns http 403, with the following
 error message.
 hash
 errorsince date or since_id is too old/error
 /hash

 Did anything change in the last 24 hours? Is this a known issue, and
 when is it expected to get fixed? Any leads would be much appreciated.

 --
 thanks,
 Ishwar.



[twitter-dev] Re: tool to let you know when twitter name is available

2009-06-24 Thread Alex Payne
Please keep in mind that we keep deleted accounts around for a while, in
case users want to restore their accounts. @yourfavoriteusername might
appear to be available (that is, you get a 404 when you visit it), but that
doesn't mean you'll be able to sign up with it until we've given the
original account holder a fair amount of time to reconsider.
Handy tool, though!

On Wed, Jun 24, 2009 at 09:24, sull sullele...@gmail.com wrote:


 nice.
 i've used http://www.changedetect.com for this in the past.
 will give your service a try.


 On Jun 24, 2:22 am, drew pushespr...@gmail.com wrote:
  Hi everyone,
 
  I wrote a quick tool to email you when the Twitter name you want is
  available:http://www.tweettaker.com/
 
  It seems Twitter currently might not be deleting inactive accounts,
  but they plan to resume automatically deleting them in the future.
 
  Any feedback is appreciated.
 
  Thanks,
  Drew




-- 
Alex Payne - API Lead, Twitter, Inc.
http://twitter.com/al3x


[twitter-dev] Re: What causes suspension?

2009-06-24 Thread Craig Hockenberry

Thanks for the clarification, Doug. I can totally understand the
trending topic abuse: I looked a trend the other day and was really
surprised at the amount of crap that came up in the search.

I think it's pretty important to enumerate the triggers used for
suspension. It doesn't need to be the exact algorithm (which could be
used to defeat your efforts) but rather something like what you said
above. Something that we all can point users to so they can say
ahh... that's why. -- which I'm sure Louie is doing right now.
Anyone who's dealt with SPAM is aware of how frequently the rules
change: the point is that users need to be kept apprised of how they
are affected by these constant changes.

I'd also suggest that you fix the link on the bottom of the http://
twitter.com/suspended page. The one that explains how to contest the
suspension would be a good candidate (since that's the first thing a
real person who's been suspended wants to know.)

Maybe there's another link on the page that goes to a list of the
suspension triggers. You could periodically update that page to
reflect the current reasons for suspension.

-ch

On Jun 24, 10:25 am, Doug Williams d...@twitter.com wrote:
 There are both automated and manual spam fighting tools we use in house. One
 of the reasons for suspension is aggressively participating in multiple
 trending topics within a short amount of time. It appears that Mantia was
 flagged for this reason.

 If your users are suspended, it would be best to send them 
 tohttp://help.twitter.comand direct them to the official article [1]. Spam
 and abuse are not a white and black issues, they are also far from static.
 Both of these reasons make it difficult to give definite criteria for
 avoiding a net.

 1.http://help.twitter.com/forums/26257/entries/15790

 Thanks,
 Doug

 On Wed, Jun 24, 2009 at 9:57 AM, richardhenry richardhe...@me.com wrote:

  As someone who followed Louie, this is very weird to me. Nothing he
  did looked remotely spammy/offensive/disingenuous. #freemantia

  -- Richard (@richardhenry)

  On Jun 24, 5:43 pm, Craig Hockenberry craig.hockenbe...@gmail.com
  wrote:
   One of the guys I work with recently had his account suspended:

   http://mantia.me/blog/twitter-suspension/

   We've been having a bit of fun with it: creating a #freemantia hash
   tag and even a website http://freemantia.com

   But at the bottom of it all, I realized that we (third-party
   developers) don't really know what causes an account to be suspended.
   And yet we all have users of our products/services who can have an
   account suspended. I'd like to be able to tell them why it happened.

   I'm so clueless about what's going on that I don't know whether
   suspension is an automated or manual process. In either case, the
   decisions being made by man or machine appear to be flawed: Louie
   Mantia may be prolific, but he's not a spammer or a robot.

   Can you guys shed a little light on the situation?

   -ch

   P.S. If anyone can speed up the process of reinstating the @mantia
   account, I know it would make someone very happy :-)


[twitter-dev] Re: Search API since_id doesn't work with filter:links

2009-06-24 Thread Joel Strellner

We are seeing this as well.

On Jun 24, 4:57 am, Mojosaurus ish...@gmail.com wrote:
 Hi,

 My script polls Twitter APIs once every 15 seconds with a query 
 likehttp://search.twitter.com/search.atom?q=video%20filter:linksrpp=100;...

 Starting 2009-06-23, this API returns http 403, with the following
 error message.
 hash
 errorsince date or since_id is too old/error
 /hash

 Did anything change in the last 24 hours? Is this a known issue, and
 when is it expected to get fixed? Any leads would be much appreciated.

 --
 thanks,
 Ishwar.


[twitter-dev] Re: tool to let you know when twitter name is available

2009-06-24 Thread Doug Williams
No, we do not delete the ID in the system. We will release the screen_name
after a 9 month grace period (to allow the user to reclaim the screen_name)
before recycling it to the public.

Thanks,
Doug



On Wed, Jun 24, 2009 at 11:13 AM, TechRavingMad techraving...@gmail.comwrote:


 When you do delete, do you just delete the username and leave the ID
 as deleted status?

 I guess basically what I'm asking is that you don't recycle user ID's
 do you?



[twitter-dev] Now since_id is too recent

2009-06-24 Thread Chad Etzel

Now I'm getting this error for several searches... I remember this
popping up in the past:

{error:since_id too recent, poll less frequently}

...the problem seems to be subsiding now, though. weird.

-Chad


[twitter-dev] Re: Favoriting broken

2009-06-24 Thread Craig Hockenberry

The issue appears to affect the website, as well. When you click on
the star, it changes color, but doesn't show up in your favorites
list.

-ch

On Jun 24, 11:25 am, Craig Hockenberry craig.hockenbe...@gmail.com
wrote:
 FYI:

 We've been getting reports of favoriting not working in our app. Tried
 it in a few other apps and it appears to be a system-wide problem:

 http://code.google.com/p/twitter-api/issues/detail?id=747

 -ch


[twitter-dev] Re: Favoriting broken

2009-06-24 Thread Matt Sanford


Hi Craig,

Adding and removing favorites being delayed is a known issue  
we're working on. Take a look at yesterday's post to http://status.twitter.com/ 
 [1] for other things that might be affected. Keep an eye on  
status.twitter.com for updates.


Thanks;
 – Matt Sanford / @mzsanford
 Twitter Dev

[1] - http://status.twitter.com/post/128844304/follower-following-delays

On Jun 24, 2009, at 12:00 PM, Craig Hockenberry wrote:



The issue appears to affect the website, as well. When you click on
the star, it changes color, but doesn't show up in your favorites
list.

-ch

On Jun 24, 11:25 am, Craig Hockenberry craig.hockenbe...@gmail.com
wrote:

FYI:

We've been getting reports of favoriting not working in our app.  
Tried

it in a few other apps and it appears to be a system-wide problem:

http://code.google.com/p/twitter-api/issues/detail?id=747

-ch




[twitter-dev] Re: Favoriting broken

2009-06-24 Thread Craig Hockenberry

Ah, I hadn't seen the update to the original follower/following post.
Thanks for the update!

-ch

On Jun 24, 12:06 pm, Matt Sanford m...@twitter.com wrote:
 Hi Craig,

      Adding and removing favorites being delayed is a known issue  
 we're working on. Take a look at yesterday's post tohttp://status.twitter.com/
   [1] for other things that might be affected. Keep an eye on  
 status.twitter.com for updates.

 Thanks;
   – Matt Sanford / @mzsanford
       Twitter Dev

 [1] -http://status.twitter.com/post/128844304/follower-following-delays

 On Jun 24, 2009, at 12:00 PM, Craig Hockenberry wrote:



  The issue appears to affect the website, as well. When you click on
  the star, it changes color, but doesn't show up in your favorites
  list.

  -ch

  On Jun 24, 11:25 am, Craig Hockenberry craig.hockenbe...@gmail.com
  wrote:
  FYI:

  We've been getting reports of favoriting not working in our app.  
  Tried
  it in a few other apps and it appears to be a system-wide problem:

  http://code.google.com/p/twitter-api/issues/detail?id=747

  -ch


[twitter-dev] Re: tool to let you know when twitter name is available

2009-06-24 Thread Doug Williams
Idle and deleted are the same in our process. So nine months of inactivity
(deletion, suspension, or date of last login/tweet) is required before we
release a screen name.

Thanks,
Doug



On Wed, Jun 24, 2009 at 11:49 AM, sull sullele...@gmail.com wrote:


 9 months?  wow.
 What about reported spammers/squatters?
 Do you look at analytics of signups to see if automated software was
 involved?
 Do you cross-check email domains used?

 So an account that has been sitting idle since 2007 with a single post
 that might get deleted at some point will get an additional 9 months
 to reclaim it and sit on it for another x months/years?


 On Jun 24, 2:36 pm, Doug Williams d...@twitter.com wrote:
  No, we do not delete the ID in the system. We will release the
 screen_name
  after a 9 month grace period (to allow the user to reclaim the
 screen_name)
  before recycling it to the public.
 
  Thanks,
  Doug
 
  On Wed, Jun 24, 2009 at 11:13 AM, TechRavingMad techraving...@gmail.com
 wrote:
 
 
 
   When you do delete, do you just delete the username and leave the ID
   as deleted status?
 
   I guess basically what I'm asking is that you don't recycle user ID's
   do you?



[twitter-dev] Re: Now since_id is too recent

2009-06-24 Thread Cameron Kaiser

 Now I'm getting this error for several searches... I remember this
 popping up in the past:
 
 {error:since_id too recent, poll less frequently}
 
 ...the problem seems to be subsiding now, though. weird.

I think this was due to search servers being out of sync/not being up to
date. 

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- TRUE HEADLINE: Astronaut Takes Blame for Gas in Spacecraft -


[twitter-dev] Re: Search API since_id doesn't work with filter:links

2009-06-24 Thread Cameron Kaiser

  My script polls Twitter APIs once every 15 seconds with a query 
  likehttp://search.twitter.com/search.atom?q=video%20filter:linksrpp=100;...
 
  Starting 2009-06-23, this API returns http 403, with the following
  error message.
  hash
  errorsince date or since_id is too old/error
  /hash
 
  Did anything change in the last 24 hours? Is this a known issue, and
  when is it expected to get fixed? Any leads would be much appreciated.

 We are seeing this as well.

I believe this error occurs when the search result would generate more than
one page of results and a since argument (since or since_id) is given.
Certainly something like that is bound to at some point, even at 100
reqs/page. I'm not fond of this implementation, mind you; I'd prefer getting
the most recent page, plus maybe a warning in a separate field, rather than
deepsixing the entire request.

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- FORTUNE: You can overcome any obstacle. Try a steeplechase. 


[twitter-dev] Re: getting error 400 during creting follow request

2009-06-24 Thread Matt Sanford


Hi,

What is the body of the response you get back? Many times the  
error message is informative and will let us know where to start  
looking for possible bugs.


Thanks;
 – Matt Sanford / @mzsanford
 Twitter Dev

On Jun 24, 2009, at 10:57 AM, ankit1234 wrote:



hi,
i have been repetedly getting error 400 while trying to crete follow
request.
I am using this twitter lib http://github.com/jdp/twitterlibphp/tree/master 
.


so basically the content of the code is something like this :-
$postarg=false;
$url=http://twitter.com/friendships/create/.xml;;

// Initialize CURL
$ch = curl_init($url);
// Tell CURL we are doing a POST
curl_setopt ($ch, CURLOPT_POST, true);
// Give CURL the arguments in the POST
curl_setopt ($ch, CURLOPT_POSTFIELDS, $postargs);
// Set the username and password in the CURL call
curl_setopt($ch, CURLOPT_USERPWD,
  :);
// Set some cur flags (not too important)
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_NOBODY, 0);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

// execute the CURL call
$response = curl_exec($ch);

// Get information about the response
$responseInfo=curl_getinfo($ch);
// Close the CURL connection
curl_close($ch);
// Make sure we received a response from Twitter
if(intval($responseInfo['http_code'])==200){
// Display the response from Twitter
echo $response;
}else{
// Something went wrong
echo Error:  . $responseInfo['http_code'];
}


here is the link where i have put this code http://viraltwitters.com/test.php 
.

I am not sure why this is happening..Error 400 represents bad request
or reaching the api limit..i have a dedicated api and i am sure i have
not hit the limit..at the same time the code seems correct..so i am
completely clueless why is this happening.
thanks




[twitter-dev] Re: Search API since_id doesn't work with filter:links

2009-06-24 Thread Chad Etzel

On Wed, Jun 24, 2009 at 4:02 PM, Cameron Kaiserspec...@floodgap.com wrote:
 I believe this error occurs when the search result would generate more than
 one page of results and a since argument (since or since_id) is given.
 Certainly something like that is bound to at some point, even at 100
 reqs/page. I'm not fond of this implementation, mind you; I'd prefer getting
 the most recent page, plus maybe a warning in a separate field, rather than
 deepsixing the entire request.

No, I'm pretty sure that's not the case. I have several high traffic
searches going that regularly return 100 items, and I know there are
more. It never gives that response.
-Chad


[twitter-dev] Friend Selector

2009-06-24 Thread Kyle Mulka

I'm wondering if anyone has built a facebook-like friend selector that
would work for Twitter friends. My app could benefit from something
like this where you could start typing in people's names or usernames
and it would do a google suggest style dropdown to select friends.
There would also be a way to click on friends to select them from your
list.

--
Kyle Mulka
http://twilk.com


[twitter-dev] Releasing a dormat screenname

2009-06-24 Thread kprobe

Doug has been just talking about spammers related to acct suspensions
and just gave the rules for releasing a screen name. Who do we contact
@twitter to get a dormant screen name released?
Mark


[twitter-dev] Share button on website

2009-06-24 Thread Kristin Gentry

What is the code/javascript to place a Share button on your website
or blog?  I can't find it anywhere!  Thanks!


[twitter-dev] Friendships.create returns successful but does not work

2009-06-24 Thread NW

I'm trying to setup a script to follow a specified user.  When I run
it it returns the user's information as described in the documentation
as a successful result.  However, when I go to look at the user
account, it's not following anyone.

This is the code I'm using in php:

$ch = curl_init( 'http://twitter.com/friendships/create/
usernameToFollow.xml');
curl_setopt_array($ch, array(
CURLOPT_HEADER = true,
CURLOPT_RETURNTRANSFER = true,
CURLOPT_CONNECTTIMEOUT = 10,
CURLOPT_TIMEOUT = 10,
CURLOPT_FORBID_REUSE = true,
CURLOPT_FRESH_CONNECT = true,
CURLOPT_FOLLOWLOCATION = 1,
CURLOPT_SSL_VERIFYHOST = 0,
CURLOPT_POSTFIELDS = 'follow=true',
CURLOPT_USERPWD = ':'
)
);
$resp = curl_exec($ch);
curl_close ($ch);

Any idea what's happening here?


[twitter-dev] Caching strategies

2009-06-24 Thread Bill Kocik

My app will have multiple users logged in accessing their Twitter
accounts simultaneously. I'm using Hayes Davis' Grackle gem (http://
github.com/hayesdavis/grackle/tree/master) because I like that it's
very thin wrapper atop the API - really more a set of convenience
methods. I typically call methods on it directly in my controllers,
rather than pass calls to retrieve (for example) a user's friends list
through a User model of some sort.

Lately I've been trying to figure out the best way to handle caching.
I've realized that I need to cache some endpoints for individual users
(because Twitter responds differently based on the authenticated
user), while caching others endpoints once for all users (such as the
public timeline), and caching different endpoints for varying amounts
of time. I'm having a heck of a time figuring out at which level to
locate my caching code. I'm sort of leaning toward creating wrapper
objects that directly call Grackle, and calling those wrappers from
the controllers, so that the wrappers can employ the caching strategy.

I'm curious to hear how others implemented their caching.


-Bill


[twitter-dev] Re: Releasing a dormat screenname

2009-06-24 Thread Matt Sanford


Hi Mark,

Email usern...@twitter.com (literally 'username', not the name  
you want). It usually takes some time since, as you can imagine, it's  
a lower priority than spam and other issues.


Thanks;
 – Matt Sanford / @mzsanford
 Twitter Dev

On Jun 24, 2009, at 1:54 PM, kprobe wrote:



Doug has been just talking about spammers related to acct suspensions
and just gave the rules for releasing a screen name. Who do we contact
@twitter to get a dormant screen name released?
Mark




[twitter-dev] Re: Friendships.create returns successful but does not work

2009-06-24 Thread Matt Sanford


Hi there,

This is a known issue and we're working on it. Check out the  
issues list at http://code.google.com/p/twitter-api/issues/list … or  
more specifically issue 749 [1] which will point you over to  
status.twitter.com. We'll update status.twitter.com as more  
information becomes available.


Thanks;
 – Matt Sanford / @mzsanford
 Twitter Dev

[1] - http://code.google.com/p/twitter-api/issues/detail?id=749

On Jun 24, 2009, at 4:06 PM, NW wrote:



I'm trying to setup a script to follow a specified user.  When I run
it it returns the user's information as described in the documentation
as a successful result.  However, when I go to look at the user
account, it's not following anyone.

This is the code I'm using in php:

$ch = curl_init( 'http://twitter.com/friendships/create/
usernameToFollow.xml');
curl_setopt_array($ch, array(
CURLOPT_HEADER = true,
CURLOPT_RETURNTRANSFER = true,
CURLOPT_CONNECTTIMEOUT = 10,
CURLOPT_TIMEOUT = 10,
CURLOPT_FORBID_REUSE = true,
CURLOPT_FRESH_CONNECT = true,
CURLOPT_FOLLOWLOCATION = 1,
CURLOPT_SSL_VERIFYHOST = 0,
CURLOPT_POSTFIELDS = 'follow=true',
CURLOPT_USERPWD = ':'
)
);
$resp = curl_exec($ch);
curl_close ($ch);

Any idea what's happening here?




[twitter-dev] Re: Friendships.create returns successful but does not work

2009-06-24 Thread NW

Ah, of course timing is everything.

Would note that the request just came through (a few hours late).  So
it appears to be working still, just slow.

Thanks!


[twitter-dev] Re: Clarification on how @ messages and PM's are handled - PLEASE HELP

2009-06-24 Thread Joel Strellner

Hi Nicholas,

I don't work for twitter, but I believe that they associate ID's to
messages (tweets or DMs), and then associate the ID to each of the
users that it needs to go to.  The message is only stored once, unlike
email which is copied to each user.

If a user deletes their message, all the users that would ordinarily
see it, will no longer be able to see it.

If you send a message to @noname, and they do not exist, I believe it
is silently dropped.  It will still be in the senders sent history,
but since @noname doesn't exist, no one would see it unless they
looked at the senders tweets. Since there is no @noname available, it
is unable to map it to a user ID, and therefore, it wont appear (even
if someone created @noname later in the future)

-Joel

On Jun 24, 2:12 pm, Nicholas S nst...@gmail.com wrote:
 Hi Everyone,

 I would very much appreciate the groups help on this. I work for a
 local city government in Florida and we are trying to look into using
 Twitter to help make government more transparent and engaged with our
 community. BUT I need very technical information on how messaging is
 handled in twitter, to understand what needs to be retained for Public
 Records laws.

 1. Senerio set-up: User2 is replying to User1. When User2 replies to
 User1 using the message {...@user1 thats a great idea} is there any
 message sent (similar to how email is sent) where the message actually
 travels to User1?
 -or-
 Does User1's twitter program search User2's twitter posting looking
 for @User1 and then if found directs User1 to User2's content? Similar
 to a search engine where it (twitter) would run a search finding the
 content @User1 and then saying Here is a reply go here or get it from
 here.

 --- To get into it further if I reply to @noname and noname isnt a
 valid acount/ it doesnt exist. Does that message get transmitted
 anywhere.

 Lets start with that as its confusing enough. Basicly if a message is
 transmitted to a government on twitter they are public record and need
 to be retained.


[twitter-dev] Re: Friend Selector

2009-06-24 Thread Steve Brunton

On Wed, Jun 24, 2009 at 4:12 PM, Kyle Mulka kyle.mu...@gmail.com wrote:

 I'm wondering if anyone has built a facebook-like friend selector that
 would work for Twitter friends. My app could benefit from something
 like this where you could start typing in people's names or usernames
 and it would do a google suggest style dropdown to select friends.
 There would also be a way to click on friends to select them from your
 list.


Don't know what your language of choice is, but Matt Raible did
something like that with GWT.

http://raibledesigns.com/rd/entry/creating_a_facebook_style_autocomplete

He also recently posted about OAuth with GWT too.

-steve


[twitter-dev] Re: Delay after deleting friendship

2009-06-24 Thread Doug Williams
It is subject to the same delays. The social graph changes are put into a
queue for write which is running behind and causing the inconsistencies.

Thanks,
Doug



On Wed, Jun 24, 2009 at 2:56 PM, Damon Clinkscales sca...@pobox.com wrote:


 Doug,

 Is friendships/exists currently accurate?  Or is it subject to the same
 delays?

 Thanks,
 -damon
 --
 http://twitter.com/damon

 On Thu, Jun 18, 2009 at 4:21 PM, Doug Williamsd...@twitter.com wrote:
  We are working on this problem. Unfortunately there is no workaround at
 this
  time.
 
  Thanks,
  Doug
 
 
 
  On Thu, Jun 18, 2009 at 10:58 AM, Jonathan jhalter...@gmail.com wrote:
 
  I noticed that after I create or delete a friendship via the API,
  there's a varying delay before the deleted friend disappears from my
  Twitter friends page sometimes it's several minutes. Why the
  delay, and is there any way around it?
 
  Thanks,
  Jonathan



[twitter-dev] Re: Clarification on how @ messages and PM's are handled - PLEASE HELP

2009-06-24 Thread Abraham Williams

On Wed, Jun 24, 2009 at 16:12, Nicholas Snst...@gmail.com wrote:

 Hi Everyone,

 I would very much appreciate the groups help on this. I work for a
 local city government in Florida and we are trying to look into using
 Twitter to help make government more transparent and engaged with our
 community. BUT I need very technical information on how messaging is
 handled in twitter, to understand what needs to be retained for Public
 Records laws.

 1. Senerio set-up: User2 is replying to User1. When User2 replies to
 User1 using the message {...@user1 thats a great idea} is there any
 message sent (similar to how email is sent) where the message actually
 travels to User1?

By default no. User1 could have SMS delivery setup and any messages
would get sent to their cellphone.

 -or-
 Does User1's twitter program search User2's twitter posting looking
 for @User1 and then if found directs User1 to User2's content? Similar
 to a search engine where it (twitter) would run a search finding the
 content @User1 and then saying Here is a reply go here or get it from
 here.

This is one way of doing it. User1 could have an application that
pulls the content to a desktop application, cellphone application or
some other kind of integration.


 --- To get into it further if I reply to @noname and noname isnt a
 valid acount/ it doesnt exist. Does that message get transmitted
 anywhere.


It depends on the type of message. If it is a DM/PM Twitter will
refuse to accept the DM. If it is an @-reply anyone following your
account could have the tweet delivered to them in a number of ways.

 Lets start with that as its confusing enough. Basicly if a message is
 transmitted to a government on twitter they are public record and need
 to be retained.


Hope this clarifies some.
Abraham

-- 
Abraham Williams | Community Evangelist | http://web608.org
Hacker | http://abrah.am | http://twitter.com/abraham
Project | http://fireeagle.labs.poseurtech.com
This email is: [ ] blogable [x] ask first [ ] private.


[twitter-dev] OAuth signature generation Help (Failed to validate oauth signature and token)

2009-06-24 Thread goodtest

I am newbie. I am trying to follow the instructions on the oauth page
on how to generate signature, but I must be doing something wrong, I
keep getting Failed to validate oauth signature and token
Here is how the base string looks before normalizing:
GEThttp://twitter.com/oauth/
request_tokenoauth_consumer_key=Xz2BKOKObTzpLrMXxJo2wwoauth_nonce=blabla123oauth_signature_method=HMAC-
SHA1oauth_token=oauth_timestamp=1245887955090oauth_version=1.0

GEThttp%3A%2F%2Ftwitter.com%2Foauth%2Frequest_tokenoauth_consumer_key
%3DXz2BKOKObTzpLrMXxJo2ww%26oauth_nonce
%3Dblabla123%26oauth_signature_method%3DHMAC-SHA1%26oauth_token%3D
%26oauth_timestamp%3D1245887955090%26oauth_version%3D1.0

after generating signature:
http%3A%2F%2Ftwitter.com%2Foauth%2Frequest_token%3Foauth_consumer_key
%3DXz2BKOKObTzpLrMXxJo2ww%26oauth_nonce
%3Dblabla123%26oauth_signature_method%3DHMAC-SHA1%26oauth_token%3D
%26oauth_timestamp%3D1245887955090%26oauth_version
%3D1.0%26oauth_signature%3D6odQgPJ5o%2FAuOIw0gt8CknlHIcc%3D


Am I missing something here? I just cant find it. Please help me out


[twitter-dev] Re: Share button on website

2009-06-24 Thread Chris McIntosh

hey mate, check out drupal and Service Links, may find something useful 
there.


THanks,
Chris
- Original Message - 
From: Kristin Gentry kristingen...@gmail.com
To: Twitter Development Talk twitter-development-talk@googlegroups.com
Sent: Wednesday, June 24, 2009 5:52 PM
Subject: [twitter-dev] Share button on website



 What is the code/javascript to place a Share button on your website
 or blog?  I can't find it anywhere!  Thanks! 



[twitter-dev] Re: OAuth signature generation Help (Failed to validate oauth signature and token)

2009-06-24 Thread JDG
Your signature base string (the second thing you posted) looks correct
(though you don't need the oauth_token part, it may be causing a problem).

The third part, however ... Something's very not right there. If you're
doing this as a GET request with a browser, you shouldn't be normalizing the
URL. If you're adding that to a request, you should only be adding the
oauth_signature part. What exactly are you doing with the third string you
posted?

On Wed, Jun 24, 2009 at 19:59, goodtest goodtest...@gmail.com wrote:


 I am newbie. I am trying to follow the instructions on the oauth page
 on how to generate signature, but I must be doing something wrong, I
 keep getting Failed to validate oauth signature and token
 Here is how the base string looks before normalizing:
 GEThttp://twitter.com/oauth/

 request_tokenoauth_consumer_key=Xz2BKOKObTzpLrMXxJo2wwoauth_nonce=blabla123oauth_signature_method=HMAC-
 SHA1oauth_token=oauth_timestamp=1245887955090oauth_version=1.0http://twitter.com/oauth/%0Arequest_tokenoauth_consumer_key=Xz2BKOKObTzpLrMXxJo2wwoauth_nonce=blabla123oauth_signature_method=HMAC-%0ASHA1oauth_token=oauth_timestamp=1245887955090oauth_version=1.0

 GEThttp%3A%2F%2Ftwitter.com%2Foauth%2Frequest_tokenoauth_consumer_key
 %3DXz2BKOKObTzpLrMXxJo2ww%26oauth_nonce
 %3Dblabla123%26oauth_signature_method%3DHMAC-SHA1%26oauth_token%3D
 %26oauth_timestamp%3D1245887955090%26oauth_version%3D1.0

 after generating signature:
 http%3A%2F%2Ftwitter.com%2Foauth%2Frequest_token%3Foauth_consumer_key
 %3DXz2BKOKObTzpLrMXxJo2ww%26oauth_nonce
 %3Dblabla123%26oauth_signature_method%3DHMAC-SHA1%26oauth_token%3D
 %26oauth_timestamp%3D1245887955090%26oauth_version
 %3D1.0%26oauth_signature%3D6odQgPJ5o%2FAuOIw0gt8CknlHIcc%3D


 Am I missing something here? I just cant find it. Please help me out




-- 
Internets. Serious business.