简体   繁体   中英

How do I include an og excerpt for a blog post using jekyll?

Do you know how to pass a post's excerpt to facebook when sharing a link?

I have a jekyll blog and when people want to share a post they get this:

link to img

Example of a link I'm trying to share:

link

Thanks

If you want to add some cutomised text you should instead use Feed Dialog .

You can use the direct URL to invoke feed dialog:

https://www.facebook.com/dialog/feed?
 app_id={app-id}
 &display=popup
 &caption={caption}
 &link={link-to-share}
 &description={description}
 &redirect_uri={redirect-url-to-your-site}

Check all available parameters here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM