MrSpiffyClean / covidtrends

Tracking the growth of COVID-19 Cases worldwide
https://aatishb.com/covidtrends/
MIT License
0 stars 0 forks source link

Facebook sharing and other stuff #10

Open MrSpiffyClean opened 4 years ago

MrSpiffyClean commented 4 years ago

Searching in google (https://www.google.com/search?q=facebook+link+truncating) lead me to some results suggesting lack of encoding as the reason. Here are the first results:

RFC 39... something something is the reference for URL parsing / encoding, using + isn't good, as that is usually encoded as a space, a comma should work, though I don't remember a lot of sites using it. Need to know what sorts of addresses break Facebook, such that we can understand the root cause.

MrSpiffyClean commented 4 years ago

Some stuff I had in notepad that make sense just jotting down.

the link isn't being edited out, just parsed wrong?

https://aatishb.com/covidtrends/?location%3DAustralia%26location%3DBrazil%26location%3DCanada%26location%3DChina%26location%3DFrance%26location%3DGermany%26location%3DHong%2BKong%26location%3DIndia%26location%3DItaly%26location%3DJapan%26location%3DPortugal%26location%3DRussia%26location%3DSingapore%26location%3DSouth%2BKorea%26location%3DSpain%26location%3DTaiwan%26location%3DTurkey%26location%3DUS%26location%3DUnited%2BKingdom

encoding the parameter URL doesn't do anything worthwhile.

https://stackoverflow.com/questions/22652041/how-to-pass-a-parameter-like-title-summary-and-image-in-a-facebook-sharer-url

https://github.com/PrivateBin/PrivateBin/issues/396 http://thisinterestsme.com/facebook-fbclid-parameter/

https://www.facebook.com/business/help/1016122818401732 https://www.facebook.com/business/help/2360940870872492

they seem to discard duplicate parameter names... do parameter key names need to be unique? They also (graphically) ellipse long urls