Can anyone get leave or follow to work?

1 view
Skip to first unread message

Dustin

unread,
Jul 12, 2008, 5:12:01 AM7/12/08
to Twitter Development Talk
I get the following messages when trying to leave or follow users
(though I was able to leave the user from the UI):

<?xml version="1.0" encoding="UTF-8"?>
<hash>
<error>There was a problem leaving the specified user.</error>
<request>/notifications/leave/rornews.xml</request>
</hash>

<?xml version="1.0" encoding="UTF-8"?>
<hash>
<error>There was a problem following the specified user.</error>
<request>/notifications/follow/rornews.xml</request>
</hash>

Am I doing something wrong?

curl -i -u user:pass http://twitter.com/notifications/leave/rornews.xml
curl -i -u user:pass http://twitter.com/notifications/follow/rornews.xml

disco

unread,
Jul 14, 2008, 10:56:30 AM7/14/08
to Twitter Development Talk
Don't know if this is your problem (it was mine previously)... to
receive user notifications, you need to be already following the user
(ie: friend). That is, the follow notification API is not the same as
"follow [user]".

On Jul 12, 4:12 am, Dustin <dsalli...@gmail.com> wrote:
> I get the following messages when trying to leave or follow users
> (though I was able to leave the user from the UI):
>
> <?xml version="1.0" encoding="UTF-8"?>
> <hash>
>   <error>There was a problem leaving the specified user.</error>
>   <request>/notifications/leave/rornews.xml</request>
> </hash>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <hash>
>   <error>There was a problem following the specified user.</error>
>   <request>/notifications/follow/rornews.xml</request>
> </hash>
>
> Am I doing something wrong?
>
> curl -i -u user:passhttp://twitter.com/notifications/leave/rornews.xml

Matthias Bauer

unread,
Jul 14, 2008, 11:59:51 AM7/14/08
to twitter-deve...@googlegroups.com
disco wrote:

> Don't know if this is your problem (it was mine previously)... to
> receive user notifications, you need to be already following the user
> (ie: friend). That is, the follow notification API is not the same as
> "follow [user]".
>
> On Jul 12, 4:12 am, Dustin <dsalli...@gmail.com> wrote:
>> I get the following messages when trying to leave or follow users
>> (though I was able to leave the user from the UI):
>>

>> Am I doing something wrong?
>>
>> curl -i -u user:passhttp://twitter.com/notifications/leave/rornews.xml
>> curl -i -u user:passhttp://twitter.com/notifications/follow/rornews.xml

You are confused about what follow and leave do. They only concern what
notifications you get from a user you are *already* following (which
Twitter insists on calling 'friends').

To create a 'friendship' (follow an user), use the friendship methods:

http://groups.google.com/group/twitter-development-talk/web/api-documentation#FriendshipMethods

-Matt

Dustin

unread,
Jul 14, 2008, 1:00:28 PM7/14/08
to Twitter Development Talk

On Jul 14, 7:56 am, disco <di...@agentdisco.com> wrote:
> Don't know if this is your problem (it was mine previously)... to
> receive user notifications, you need to be already following the user
> (ie: friend). That is, the follow notification API is not the same as
> "follow [user]".

Interesting. So, leave and follow don't work for me where I would
expect them to. There's a bug about it here:
http://code.google.com/p/twitter-api/issues/detail?id=18 -- maybe I
should try the friend API for following (it's not obvious what the
difference is).

tweetip

unread,
Jul 14, 2008, 1:34:42 PM7/14/08
to Twitter Development Talk

Dustin,

That's our bug report - we think we'll be closing it soon based on
disco's help.

M

Matthias Bauer

unread,
Jul 14, 2008, 1:36:19 PM7/14/08
to twitter-deve...@googlegroups.com
create/destroy friendship = Follow a user (check mark symbol in the
web interface)

follow/leave = receive notifications from this user (radio button in
the web interface) - this sets whether you get this user's
notifications on your device (IM or SMS).

Dustin

unread,
Jul 14, 2008, 3:07:36 PM7/14/08
to Twitter Development Talk

On Jul 14, 10:36 am, "Matthias Bauer" <moef...@gmail.com> wrote:
> create/destroy friendship = Follow a user (check mark symbol in the
> web interface)
>
> follow/leave = receive notifications from this user (radio button in
> the web interface) - this sets whether you get this user's
> notifications on your device (IM or SMS).

Thanks for clearing this up.
Reply all
Reply to author
Forward
0 new messages