@flayyer/flayyer module#1. Install the
@flayyer/flayyer to generate the smart image link on your controllers, then the
req.originalUrl to set the current
In this example we do it for the root path (
/) but should work for any path as is.
Use your favorite view engine, just make sure to render the following meta-tags in the
<head /> of your pages.
If you're using Jade, set it on your layout views.
If you're having trouble, please make sure you always render those meta-tags in the
<head /> of your pages, and that they are not overwritten elsewhere.
Now you're able to manage your link previews from your dashboard, create content from templates while preserving your brand style and export it as social media formats.
@flayyer/flayyer supports HMAC and JWT signatures.
To find your
secret key, go to your dashboard > your project > Advanced settings > Signed URLS, and enable the signing strategy you desire.
Render your meta-tags just as in the previous section.