Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fccoelho7/jscrawler

The best way to share JS apps content on Facebook!
https://github.com/fccoelho7/jscrawler

Last synced: 11 days ago
JSON representation

The best way to share JS apps content on Facebook!

Awesome Lists containing this project

README

        

# JSCrawler
The best way to share JS apps content on Facebook!

## Why?

When you put url on your Facebook, it'll load the content based on `og:` meta tags, so, if you're using JavaScript apps, won't wait your page load and will get wrong data. This module will load your page first, if accessed by Facebook, and will return the correct informations to share.

## Setup

Just type:
`npm i --save jscrawler`

## Dependencies

This is an **Express Framework** module.

## Usage

```js
import JSCrawler from 'jscrawler'

app.get('*', (req, res, next) => {
new JSCrawler(req, res, next)
})
```