The following code sample illustrates how to use the Favorites API to read and display favorites defined by a provider of favorites: