stopstalk-deployment icon indicating copy to clipboard operation
stopstalk-deployment copied to clipboard

Integrate Open Graph for better Social sharing

Open raj454raj opened this issue 7 years ago • 4 comments

For customizing link previews: https://developers.facebook.com/docs/plugins/send-button#example

https://developers.facebook.com/tools/debug/sharing/?q=https%3A%2F%2Fwww.stopstalk.com%2F

raj454raj avatar Mar 24 '17 15:03 raj454raj

From my (limited) understanding of your project, this involves adding meta tags to layout.html . Would any other files be affected?

morrme avatar Apr 01 '17 19:04 morrme

Hey @morrme , You are right ! We need to add meta tags in the layout files. The thing is StopStalk has multiple layout files (more profoundly known as templates) which are then loaded into the single layout.html file. So the aim for this issue is to come up with a generalized & clean way to embed meta tags into these templates. I haven't really tried solving this, but it would be great if you can try and send a PR for the same :)

raj454raj avatar Apr 01 '17 20:04 raj454raj

@raj454raj If the tags were just added to layout.html, wouldn't each template "inherit" the tags as they do with the other details there currently?

morrme avatar Apr 01 '17 20:04 morrme

@morrme : Exactly, we don't want that to be inherited right ? We want separate descriptions and images for each template.

raj454raj avatar Apr 02 '17 05:04 raj454raj