Back

Somen Das

Senior developer | b... • 1y

how i build a simple URL shortener. hay this is an interesting story.so my previous developer build some junk with js to show some products on a page and share them. now the problem is when I share as a dynamic link i can't show share thumbnail on platforms. so I do short-circuit. i just map the product id with image. in my database and make an endpoint like https://šŸŒ.com:3999/shortit?photo=product_image_283736.png&pid=xxxxxxx now this will give me a static short shareable link https://šŸŒ.com:3999/shorturl?id=someid1235 upon hitting this url my server redirect to a PHP page where i get the photo url as get parameter. and I put it in og tags and this is how I solved the thumbnail shareing of a dynamic post.

Reply
4

More like this

Recommendations from Medial

Image Description

Pankaj Joshi

Doing something • 3m

Idhar log Moon pe landing kar rahe hai.. and my developer is telling me I won't be able to generate thumbnail from URL after post is published. bc.. kya to 2 kodi ka developer mil gaya hai.

1 Reply
11

Namit

Not going down today • 3m

Building a QR code Platform with - Custom QR(add logo change color) - Dynamic QR - QR with url shortened - Trackable QR - Protected QR - UTM support QR anything else i should add ? #buildinpublic #Startups

Reply
4
Image Description

Raja Niketh Reddy Nallapareddy

Crafting Digital Suc... • 1y

Alright friends, listen up! šŸ‘€ In our previous automation post, I showed you how to send an email when a Google Form is submitted. Right? Well, now we're taking it to the next level by making that automation even more dynamic using APIs and AI! 🤯

See More
1 Reply
1
6

Download the medial app to read full posts, comements and news.