Frequently Asked Questions
Complete Activity Streams Atom example
Q: Where is a complete Activity Streams Atom example?
A:
Adding Activity Streams to an existing Atom feed
Q: How do I add Activity Streams support to my existing valid Atom feed?
A: Two things for simple Activity Streams support:
1. Update your feed element. You probably have a feed element something like this:
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
Add the Activity Streams namespace to it like this:
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:activity="http://activitystrea.ms/spec/1.0/" xml:lang="en-US">
And be sure to update the xml:lang attribute to the language you use in your posts. See the W3C FAQ on choosing a language tag for help with picking one other than "en-US".
2. Update your entry elements.
You're probably posting one particular type of entry to your feed.
<entry>
...
</entry>
If your entries are blog posts, use the Article object type:
http://activitystrea.ms/schema/1.0/article
If your entries are short updates, text notes like tweets, use the Note object type:
http://activitystrea.ms/schema/1.0/note
And add an <activity:object-type> element with the object type URL inside to each entry like this:
<entry>
...
<activity:object-type>http://activitystrea.ms/schema/1.0/note</activity:object-type>
</entry>
3. There is no step 3. You're done. You have a simple activity stream now.
Validating Activity Streams Atom
Q: How do I validate my Activity Streams Atom?
A:
Return to FrontPage
Comments (0)
You don't have permission to comment on this page.