现在有人知道如何获取 facebook 页面的 rss-feed 吗?当我作为页面登录并转到 http://www.facebook.com/feeds/notifications.php?id=xx&viewer=xx&key=xx&format=rss20 时,我得到一个空的提要。是否有包含页面帖子的相应“页面”供稿?
谢谢, /M
最佳答案
下面 URL 中的 ID 是您创建 rss 提要时需要找到的 ID。
http://www.new.facebook.com/feeds/notifications.php?id= YOUR_FACEBOOK_ID&viewer=YOUR_FACEBOOK_ID&key=YOUR_INTERNAL_KEY&format=rss20
此 URL 中有 3 个数字。 “id”后面的数字是您的 Facebook ID 号。这个数字出现了两次。最后一个数字是您的 Facebook 内部 key 。复制这些数字并将它们放在一边。
第 3 步:转到您的 Facebook 好友页面: http://www.facebook.com/friends/?ref=tn
第 4 步:点击页面上的“好友状态”链接。
您现在应该可以看到您 friend 事件的 RSS 提要。该 URL 将如下所示:
http://www.new.facebook.com/feeds/friends_status.php?id= your_facebook_id&key=your_friends_key&format=rss20
第二个数字是您的 Facebook 好友 key 。复制此号码并将其放在一边。
第 5 步:创建 RSS URL
一旦您拥有 3 个 Facebook 号码(facebook_id、your_internal_key 和 your_friend_key),您就可以制作自定义 RSS 提要了。您所要做的就是将它们复制并粘贴到下面的链接结构中。
- 状态提要
http://www.new.facebook.com/feeds/status.php?id= your_facebook_id&viewer=your_facebook_id&key=your_internal_key&format=rss20
- 通知提要
http://www.new.facebook.com/feeds/notifications.php?id= your_facebook_id&viewer=your_facebook_id&key=your_internal_key&format=rss20
- friend 状态提要
http://www.new.facebook.com/feeds/friends_status.php?id= your_facebook_id&key=your_friends_key&format=rss20
- friend 链接提要
http://www.new.facebook.com/feeds/share_friends_posts.php?id= your_facebook_id&key=your_friend_key&format=rss20
- 好友列表提要
http://www.new.facebook.com/feeds/friends_status.php?id= your_facebook_id&key=your_friend_key&format=rss20
- RSS 2.0
http://www.facebook.com/feeds/page.php?format=rss20&id= 页面 ID
- 备选方案
关于Facebook 页面的帖子提要,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10190529/