Skip to content

Instantly share code, notes, and snippets.

View larsschwarz's full-sized avatar

Lars Schwarz larsschwarz

View GitHub Profile
@larsschwarz
larsschwarz / gist:ad45a209a16b48d353247e8c2d33d72a
Created April 9, 2020 12:36
Messenger API page_message_tags response
{
"data": [
{
"tag": "SHIPPING_UPDATE",
"description": "The shipping_update tag may only be used to provide a shipping status notification for a product that has already been purchased. For example, when the product is shipped, in-transit, delivered, or delayed. This tag cannot be used for use cases beyond those listed above or for promotional content (ex: daily deals, coupons and discounts, or sale announcements)."
},
{
"tag": "RESERVATION_UPDATE",
"description": "The reservation_update tag may only be used to confirm updates to an existing reservation. For example, when there is a change in itinerary, location, or a cancellation (such as when a hotel booking is canceled, a car rental pick-up time changes, or a room upgrade is confirmed). This tag cannot be used for use cases beyond those listed above or for promotional content (ex: daily deals, coupons and discounts, or sale announcements)."
},
@larsschwarz
larsschwarz / gist:572aaa3b967cccfe8884ab57565842b5
Created January 30, 2019 18:09
feed event webhook comment
{"entry": [{"changes": [{"field": "feed", "value": {"item": "comment", "sender_name": "xxx", "comment_id": "xxx", "sender_id": xxx, "post_id": "xxx", "verb": "add", "parent_id": "xxx", "created_time": xxx, "post": {"type": "status", "updated_time": "xxx", "promotion_status": "xxx", "permalink_url": "xxx", "id": "xxx", "status_type": "xxx", "is_published": true}, "message": "xxx"}}], "id": "xxx", "time": xxx}], "object": "page"}
@larsschwarz
larsschwarz / big-screenshot.js
Created October 20, 2018 10:06 — forked from joelgriffith/big-screenshot.js
Large Puppeteer Images
const puppeteer = require('puppeteer');
const merge = require('merge-img');
const pageUrl = ''; // REPLACE ME
const pageElement = '#svgcanvas'; // REPLACE ME
(async() => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto(pageUrl);