<!--
Stylesheet to convert a Facebook public page to RSS.
- Copyright (C) 2015 Antonio Ospite <ao2@ao2.it>
+ Copyright (C) 2015-2018 Antonio Ospite <ao2@ao2.it>
This file is part of tweeper.
<xsl:template match="/">
<xsl:variable name="channel-title" select="//title"/>
- <xsl:variable name="channel-link" select="//div[contains(@class, 'fbUserStory') or contains(@class, 'userContentWrapper')][1]//a[1]/@href"/>
- <xsl:variable name="channel-image" select="//div[contains(@class, 'fbUserStory') or contains(@class, 'userContentWrapper')][1]//a[1]//img/@src"/>
+ <xsl:variable name="channel-link" select="//meta[@property='og:url']/@content"/>
+ <xsl:variable name="channel-image" select="//meta[@property='og:image']/@content"/>
<rss version="2.0">
<xsl:attribute name="xml:base"><xsl:value-of select="$BaseURL" /></xsl:attribute>
</link>
<description>
<xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text>
- <xsl:copy-of select="//div[@data-id='1']/node()"/>
+ <xsl:value-of select="//meta[@property='og:description']/@content"/>
<xsl:text disable-output-escaping="yes">]]></xsl:text>
</description>
<image>