mohamedmansour / hackathon-letsgo.io

letsgo.io - Photo Hack Day 4 project
http://letsgo.io
5 stars 6 forks source link

Server to set: Title, OG MetaTags, etc from URL #30

Open justinormont opened 11 years ago

justinormont commented 11 years ago

Parse URL parameters server side and produce a correct Title, OG MetaTags, Meta Description, & Twitter Metacard data.

Use case:

URL Example: http://letsgo.io?from=San+Francisco&q=New+York+City&wp=37.783333,-122.416667,43.066667,-89.4,40.67,-73.94&pids=8158094262,6920002684,2835649418,3920850843&dpid=3908821399

Where:

If dpid is set, set the photo metadata to the photo pointed to by dpid.

Twitter card spec: https://dev.twitter.com/docs/cards

This is in prep for #9 (Social share icons for Facebook/Twitter/Google+)