Skip to content

The purpose of this project is to show how to use open graph annotations to have a rich preview of a link in Slack (or other websites)

Notifications You must be signed in to change notification settings

gjgd/open-graph-preview-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

open-graph-preview-demo

Install

Install serverless (and its alias sls)

npm i -g serverless

To deploy:

sls deploy

Try it:

https://l3mukrh389.execute-api.us-east-1.amazonaws.com/dev/2

If you paste this link in Slack, it will recognize the user agent and return open graph annotation

If you paste this link in a normal browser, it will return a Hello world sentence

Links

About

The purpose of this project is to show how to use open graph annotations to have a rich preview of a link in Slack (or other websites)

Topics

Resources

Stars

Watchers

Forks