2011-12-02 54 views
0

我试图从Facebook页面的RSS导入到自己的网站,但是当我点击我的页面左侧“获得通过RSS更新”,我得到这个错误:获取更新 - Facebook的SyndicationErrorFeed

http://www.facebook.com/feeds/page.php?id=142648432496996&format=rss20

 <?xml version="1.0" encoding="utf-8"?> 
    <rss version="2.0" 
      xmlns:media="http://search.yahoo.com/mrss/" 
      xmlns:dc="http://purl.org/dc/elements/1.1/" 
     > 
     <channel> 
     <title></title> 
     <link></link> 
     <description></description> 
     <language>en-us</language> 
     <category domain="Facebook">SyndicationErrorFeed</category> 
     <generator>Facebook Syndication</generator><docs>http://www.rssboard.org/rss-specification</docs> 
     <lastBuildDate>Fri, 02 Dec 2011 05:28:53 -0800</lastBuildDate> 
     <webMaster>[email protected]</webMaster> 
     <item> 
      <guid>http://www.facebook.com/feeds/syndication_error.php#bd652632c2b2f78e4d74b708b37cdebb_</guid> 
      <title>Erro do RSS do Facebook</title> 
      <link>http://www.facebook.com/feeds/syndication_error.php#bd652632c2b2f78e4d74b708b37cdebb_</link> 
      <description>This feed URL is no longer valid. Visit this page to find the new URL, if you have access: &lt;a href=&quot;http://www.facebook.com/profile.php?id=142648432496996&quot;&gt;http://www.facebook.com/profile.php?id=142648432496996&lt;/a&gt;</description> 
      <pubDate>Fri, 02 Dec 2011 05:28:53 -0800</pubDate> 
      <author>Facebook.com</author> 
      <dc:creator>Facebook.com</dc:creator> 
     </item> 
     </channel> 
     <access:restriction relationship="allow" xmlns:access="http://www.bloglines.com/about/specs/fac-1.0" /> 
    </rss> 

这似乎并不一致。我在其他页面上测试了这个“通过RSS获取更新”,它可以与其他页面一起工作,而不与其他页面一起工作(同样的问题)。

我尝试检查网页的权限,但我没有找到一个页面的RSS任何权限配置。

回答

1

是否有页面上的任何地域/人口限制?如果有,你可能会无法辛迪加它

+0

没有。 :/ –

+0

我从来没有看到消息,除非该网页超过18仅限于用户,某一个国家,等我仔细检查你的页面设置并再次尝试,如果我是你 – Igy

+0

完美!非常感谢你!问题在于年龄限制。我删除它。即使有年龄限制,是否有办法检索rss?也许在URL中传递viewer_id? –

0

从结果中移除

<?xml version="1.0" encoding="utf-8"?> 

。如果您试图获得并解析响应,则此线会干扰。目前也经历过同样的麻烦,但我已经想出了我需要获取网页头像的问题。

基本上,RSS与有效的XML供稿(您可以通过格式化告诉/观看在浏览器中进料时的颜色),你可以解析。

但FB饲料这一行添加到顶部:

<?xml version="1.0" encoding="utf-8"?> 

第一行需要是

<rss xmlns:content=" 

线。