ritz078 / embed-js

🌻 A lightweight plugin to embed emojis, media, maps, tweets, code and more. ✨
https://codesandbox.io/s/Wp5OlNMn
MIT License
1.27k stars 88 forks source link

Link break in FB posts #248

Closed d8vjork closed 6 years ago

d8vjork commented 6 years ago

image

As can see in the screenshot, it take the previous link with tag and it fail because of ".

ritz078 commented 6 years ago

Can you give me the whole URL that was wrongly processed ?

d8vjork commented 6 years ago

@ritz078 Yep, of course: https://www.facebook.com/socialchan.sn/posts/1388246151263048

d8vjork commented 6 years ago

PD: I check with the example URL of the documentation (https://www.facebook.com/madovermarketing/posts/1402165223182741), and same failure.

That's my EmbedJS config:

window.embedjs.setOptions({
    marked              : false,
    emoji               : false,
    fontIcons           : false,
    link                : true,
    linkOptions         : {
        target          : 'blank',
    },
    tweetsEmbed         : true,
    tweetOptions        : {
        maxWidth        : 550,
        align           : 'center',
    },
    googleAuthKey       : '..........',
    singleEmbed         : true,
    videoWidth          : 720,
    inlineEmbed         : 'all',
    soundCloudOptions   : {
        height          : 200,
    },
});
ritz078 commented 6 years ago

It seems that's a bug.

ritz078 commented 6 years ago

Do you only need facebook embedding ?

d8vjork commented 6 years ago

No, I need full embedding

ritz078 commented 6 years ago

You can try the new v5 beta. Here is the demo https://codesandbox.io/s/Wp5OlNMn

d8vjork commented 6 years ago

Yeah, now yes, thank so much @ritz078!

PD: I'll make some contributions (if I can) and a donation for the project :+1: