Friends shared and annotated articles?

10 views
Skip to first unread message

Mariano Kamp

unread,
Dec 15, 2009, 9:23:34 AM12/15/09
to fougrapi
Hi,

I have trouble getting my head wrapped around the whole friends shared articles issue. My thinking seems to be totally incompatible with the way shared articles are handled and I hope to get some insights here. I have a couple of more issues with the topic, but in order not to let this get epic I'll start with only some first.

It seems that if you share an article that will only change some states (broadcast-friends / broadcast), but if you share it with a note a new article is created. How does that whole thing work?

How do I unshare an item that I've annotated/shared, respectively how to change the comment? Do I need to subscribe to my own shared items and re-sync after sharing to do that?

How do I group shared/annotated articles from others (=not the user I am currently looking at)? How do I group those articles? 
When I look at the meta data for the source I see this:
    <source gr:stream-id="user/SOME_USER/source/com.google/link">
      <id>
      tag:google.com,2005:reader/user/SOME_USER/source/com.google/link</id>
      <title type="html">MobileCrunch</title>
      <link rel="alternate" href="http://www.mobilecrunch.com"
      type="text/html" />
    </source>

What do I do with the meta data? SOME_USER is neither the ME_USER I am, nor the FRIEND_USER user who shared the article with me?!

I believe to know it is shared by a friend, because of this:

  <category term="user/ME_USER/state/com.google/broadcast-friends"
    label="broadcast-friends" />
 
And I believe it is shared by FRIEND_USER because of this:
<link rel="via"
    title="FRIENDS_NAME's shared items" />

How would I call the feed title I display to the user? What would I use as the feed atom id (or equivalent)?

Cheers,
Mariano

Mariano Kamp

unread,
Dec 21, 2009, 1:31:09 AM12/21/09
to Friends of the Unofficial Google Reader API

Mihai Parparita

unread,
Dec 21, 2009, 12:27:58 PM12/21/09
to foug...@googlegroups.com
Hi Mariano,

That's a lot of questions :) Generally, yes, share-with-note (and the
Note in Reader bookmarklet) will generate copies of items. The copied
items have a user/-/state/com.google/link origin stream (vs. a feed
origin stream for regular items). Note that user 1 does a
share-with-note and then user 2 re-shares that item (with no note,
just a regular share) then the item will still have an origin stream
of user 1, but a <category> of user 2 (if you're only following user
2).

As far as unsharing goes, you can use an edit-tag request to remove
the broadcast tag as you would for any other item. We don't currently
support editing of the note once it's created.

Normally, notes are embedded into the body of /atom/ responses. If
you'd like them to be in a separate (namespaced) element so you can
special-case their rendering, you can add the ann=false (or is it
ann=true? -- on an iPhone right now so I can't double-check).

There is also the concept of "notes" in Reader, which are standalone
items that originate purely within Reader (you can see the UI for them
at the top of Your Shared Items, Your Stuff, and People You Follow).
These have an origin stream of user/-/state/com.google/post. They can
also be deleted (in the UI they have a delete action) but I don't
remember off-hand the URL for that.

Mihai

Reply all
Reply to author
Forward
0 new messages