rss - How to use feedparser to retrieve notifications from Facebook? -
i have show number of notifications(using rss feeds) on external device , wanted retrieve same using feedparser.
i'm not sure mean "external device" code used retrieving notifications is
def getfb(posts, id, key): f = feedparser.parse("http://www.facebook.com/feeds/notifications.php?id=" + id + "&viewer=" + id + "&key=" + key + "&format=rss20"); print "here latest facebook posts. "; fi = 0 while fi<posts: print f.entries[fi].description; fi = fi + 1;
Comments
Post a Comment