Home Forums Embed One comments instance for 3 pages

One comments instance for 3 pages

  • Author
    Posts
  • #5318

    mcarikn2
    Participant

    Hi,

    I would like to embed one comments instance for 3 separate web pages (same domain). Is it possible?

    Thanks!
    Eric

    #5319

    graphcomment
    Keymaster

    Hello,

    Yes, you must set manually the same uid parameter in your GraphComment JS tag.
    like uid = ‘mysamecommentsection’;
    Best,

    #5320

    mcarikn2
    Participant

    Hi,

    Thank you.
    I’ve added the same uid parameter on 2 pages.
    On one I can see the graphcomment with its comments, and on the other I see an empty graphcomment (with no comments).

    This is the code I use for both pages:

    <div id=”graphcomment”></div>
    <script type=”text/javascript”>
    /* – – – CONFIGURATION VARIABLES – – – */
    // make sure the id is yours
    window.gc_params = {
    graphcomment_id: ‘Learn-Piano-Heb’,
    uid : ‘Piano-Heb-Shared-ID’,
    // if your website has a fixed header, indicate it’s height in pixels
    fixed_header_height: 0,
    };

    /* – – – DON’T EDIT BELOW THIS LINE – – – */
    (function() {
    var gc = document.createElement(‘script’); gc.type = ‘text/javascript’; gc.async = true;
    gc.src = ‘https://graphcomment.com/js/integration.js?&#8217; + Math.round(Math.random() * 1e8);
    (document.getElementsByTagName(‘head’)[0] || document.getElementsByTagName(‘body’)[0]).appendChild(gc);
    })();
    </script>

    Appreciate your help.
    Thanks!
    Eric

    #5321

    mcarikn2
    Participant

    Where do I get the uid?
    Please help

    #5322

    graphcomment
    Keymaster

    Hi,

    Can you send us the different URL ?
    Private if you want.
    Best,
    J.

    #5324

    mcarikn2
    Participant

    Hi,

    I’m not sure if you got my last private message with the links..

    #5326

    mcarikn2
    Participant

    Please help

You must be logged in to reply to this topic. Click here to login or register