HTML Js Share share content

Asked

Viewed 226 times

0

I would like to know if there is any global solution to generate news sharing on a social media content portal. Or I have to insert a different meta tag for each social network on each page. (Facebook, Twitter and G+)

Scenario: The user clicks on a button to share a news.

Problem: Should I generate different metatag header for each social network to share? are different Aces? is there something that generates it automatic for each chosen social network?

  • David, whether or not there is a global solution I do not know, but I believe not, so it is necessary to create a metatag p/ each social network, for sure are different Pis and something that automatically manages or does not depend on the social network, but I believe that not all need a config. previews, every time I’ve implemented I’ve had to set up, here’s something very interesting about metatags:http://answall.com/questions/72860/meta-tags-para-redes-socials?rq=1

  • Very good this recommendation. Another question is: the metatags necessarily need to be in the <head> or I can pass it by parameter for example?

  • Yes they need to be in the <head>, Note: <meta> Always go Inside the <head> element. Source: https://www.w3schools.com/html/html_head.asp on the question of passing by parameter, it depends on what you want to do, as you want to do, but cannot imagine a situation that would be necessary.

  • The situation is a list with 50 news items on a single page. Soon the <head> would be huge if you had to create a head set for each news item. I wanted in each button already generate something simple to share without needing the tags in the header.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.