Package Exports
- fbtorss
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fbtorss) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
fbtorss
Lib to convert facebook post feed to RSS. You will need facebook public content permission to use to for any public pages.
Installation
npm install fbtorssUsage
fbtorss
.getRss({
facebookPageUrl: `https://www.facebook.com/cnet`,
access_token: `accessTokenFromFacebook`,
}) // Returns a Promise!
.then( async (items) => {
console.log(items);
return resolve();
})
.catch(err => {
console.log(err);
});Output (simplified):
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>W3Schools Home Page</title>
<link>https://www.w3schools.com</link>
<description>Free web building tutorials</description>
<item>
<title>RSS Tutorial</title>
<link>https://www.w3schools.com/xml/xml_rss.asp</link>
<description>New RSS tutorial on W3Schools</description>
</item>
<item>
<title>XML Tutorial</title>
<link>https://www.w3schools.com/xml</link>
<description>New XML tutorial on W3Schools</description>
</item>
</channel>
</rss>Working
This will call a request to graph facebook api via axios and then receive the data which in turn which convert them to RSS format.
Issues
This is a development so reported issues will be resolved.
Security contact information
To report a security vulnerability, please use the prajwolkc.com.np.