Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript how to share page Item in twitter, facebook and Google Plus

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #259966
    tallaramesh
    Participant

    “`
    <meta name='description' content='This chichi Chui chichivghuijuu' /><br />
    <meta property='og:title' content='YouTube' /><br />
    <meta property='og:description' content='This chichi Chui chichivghuijuu' />
    <meta property='og:site_name' content='Pizza Corn' />
    <meta property='og:url' content='https://www.youtube.com/watch?v=ge2Ye7e32sA&#039; />

    <meta property='og:video' content='https://www.youtube.com/watch?v=ge2Ye7e32sA&#039; /><br />
    <meta property='og:video:secure_url' content='https://www.youtube.com/embed/ge2Ye7e32sA&#039; /><br />
    <meta property='og:video:width' content='640' /><br />
    <meta property='og:video:height' content='480' /><br />
    <meta property='og:video:type' content='application/x-shockwave-flash' />

    <meta name='twitter:title' content='Pizza Corn' /><br />
    <meta name='twitter:card' content='player' />
    <meta name='twitter:site' contant='@youtube' />
    <meta name='twitter:url' content='https://www.youtube.com/watch?v=ge2Ye7e32sA&#039; />
    <meta name='twitter:description' content='This chichi Chui chichivghuijuu' />
    <meta name='twitter:player' contant='https://www.youtube.com/embed/ge2Ye7e32sA&#039; />
    <meta name='twitter:player:width' contant='640' />
    <meta name='twitter:player:height' contant='480' /> “`

    I am sharing the page url in Twitter, Facebook and GooglePlus.

    I am able to share the Image,
    But I am unable to share the embeded youtube video from website to Twitter, Facebook and GooglePlus..

    Please suggest me what kind meta tags I need to keep in website, so that i can share youtube video direct in Twitter, Facebook and GooglePlus.

    #260032
    JeroenR
    Participant

    Well I’m not certain of this because I didn’t try it myself but a quick search delivers me the following information:

    When using for example the ‘og:video’ meta tag, you have to use the reference to the video ‘www.youtube.com/v’ instead of the reference to the watch URL.
    So in your case that would be something like: https://www.youtube.com/v/ge2Ye7e32sA

    And for other media like twitter you should be able to find the information you need on either google or the medium you want to share it with.
    So for Facebook for example use this: https://developers.facebook.com/docs/sharing/webmasters/

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.