How to change which photos pop up when sharing help center on Facebook?

回答済み

13 コメント

  • Claudia Pelagatti
    Zendesk team member

    Hello Jørund,

    By default our Help Center uses the logo image when sharing links on social media platforms. However, if your Guide plan allows you to have access to editing the code of your Help Center, what you can do is specify another og:image in the Document head template.

    For example:

    By doing so, upon sharing a link from your Help Center on Facebook you will be given the option to select which image you would like in the composer, for example:

    If you still do not see the image you set in the composer on Facebook, make sure to run it through Facebook Open Graph Debugger first, so Facebook gets the most updated information for that specific link you are sharing:

    https://developers.facebook.com/tools/debug/

    Feel free to take a look at Facebook Open Graph Markup documentation here too: https://developers.facebook.com/docs/sharing/webmasters/#markup

    Unfortunately, at present there is no way to remove the logo as an option in the composer.

    Best,

    1
  • Coco Chan

    Hi @Claudia,

    Thanks for sharing that. Would like to know more, is it possible to have a dynamic image? Like we have different articles with different images inside. Can it be possible to display the image according to the article? using the image from the article? Thank you!

    Best,

    Coco

    0
  • Claudia Pelagatti
    Zendesk team member

    Hey Coco,

    Sorry for having missed this post, unfortunately our Help Center does not offer that flexibility, the best I could come up with is my suggestion above. 

    I am sorry if it is not great for your needs

     

    0
  • Coco Chan

    Hi Claudia,

    No problem and thanks for your reply.

    I have fixed it by removing the code in " Document_head.hbs". Now it shows the image according to the article.

    Best,

    Coco

    0
  • Shirin Taghavi

    Hi @Claudia Pelagatti,
    We already added all meta that facebook and twitter require in our document_head.hbs. 
    It works with the main link but when we share a specific article-page, we still get the default image of logo.
    Is there any way to apply it to all the articles that get the image we give in meta and not the log? Thanks  

    1
  • Kyle Jones
    Zendesk Customer Advocate

    Hey there Shirin,

     

    I've created a ticket for you! I believe this is something we'll have to dig into here. Thank you!

    0
  • Kevin Lamenzo

    +1. We're trying to accomplish the same thing. Is there a settings file that can be exposed in the theme editor?

    0
  • Jessie Schutz
    Zendesk team member

    Hey Kevin!

    Can you be more specific about which issue you're encountering? There are a couple different scenarios happening in this thread.

    0
  • Benoit Miot

    Same problem (like Shirin Taghavi) here! Any news about this?

    0
  • Devan - Community Manager
    Zendesk Community Team

    Hello Benoit Miot,

    Could you please give us a little more detail on the issue you are currently facing at this time? 

    0
  • Benoit Miot

    Hello Devan,

    We put some OpenGraph tags in the "document header" of our template.

    For most pages (home page, categories, sections, ...) it's working properly: Facebook display the correct card.

    But we noticed that when we share an article, it is not the case: Facebook display the card from the OpenGraph tags auto-generated by ZenDesk (the html generated contains 2 sets of tags: one generated by ZenDesk, the other by our custom implementation).

    Unfortunately, ZenDesk does not allows to disable de generation of the OpenGraph tags, and more weirdly generate them randomly (not on all pages).

    Thanks in advance for your help,

    Benoit

    1
  • Brett Bowser
    Zendesk Community Team

    Hey Benoit,

    It looks like Shirin was encouraged to file a bug report with Facebook since the issue may have to do with how they're pulling images from your Help Center.

    It may be worth reaching out to their support team to see if they can point you in the right direction. Feel free to let us know if there's additional information you need from our end!

    -2
  • Noah

    I'm experiencing a similar issue to those outlined above I believe. I am able to add social card info in the document_head for my template but this only allows me to add a generic card which is added to every page on my helpdesk. I would like the option to add a different social card on the homepage and a different card for each of my categories and articles if possible, so if a user wants to share any page on my helpdesk, it creates a card that is specific to that page much like pages on websites do. Is this functionality available or something which is in the pipeline?

    To make it clear, when I remove my social card code from the document_head then it appears that the articles create their own social card on the fly where as the homepage and category pages don't create one when those pages are shared on Twitter or Facebook.

    0

サインインしてコメントを残してください。

Powered by Zendesk