justinmahar / react-social-media-embed

📰 Easily embed social media posts from Facebook, Instagram, LinkedIn, Pinterest, TikTok, X (Twitter), and YouTube in React.
https://justinmahar.github.io/react-social-media-embed/
MIT License
228 stars 30 forks source link

Disable showing captions #46

Closed Shain-Dholakiya closed 1 year ago

Shain-Dholakiya commented 1 year ago

The documentation says that hiding caption for instagram is disabled and I saw the reasoning as well. But it seems like it works for me when getting rid of the caption data tag. Can this be added back? Instagram gives you the option to include or exclude the caption when embedding as well.

Screen Shot 2023-07-10 at 10 10 06 AM
matbrgz commented 1 year ago

I just remove the code: "data-instgrm-captioned": true, from node_modules\.pnpm\react-social-media-embed@2.3.6_react-dom@18.2.0_react@18.2.0\node_modules\react-social-media-embed\dist\components\embeds\InstagramEmbed.js and then: image

Now we have to change the code to reflect this.

__ update 1: I try to set data-instgrm-captioned to false, do not work.