facebook-notification

Send notifications to facebook

Usage no npm install needed!

<script type="module">
  import facebookNotification from 'https://cdn.skypack.dev/facebook-notification';
</script>

README

facebook-notification

Send notifications to facebook

Example

var sendNotification = require("facebook-notificatoon")({
    clientId: "FACEBOOK CLIENT ID"
    , clientSecret: "FACEBOOK CLIENT SECRET"
    , production: false
})

sendNotification({
    user: {
        id: "facebook id"
    }
    , uri: "/my uri"
    , campaign: "optional utm_campaign for google analytics"
    , text: "text of notification"
}, function (err, result) {
    console.log("send notification!")
})

Installation

npm install facebook-notification

Contributors

  • Raynos

MIT Licenced