Answers.Body: <p>Referring to <a href="https://github.com/nystudio107/seomatic/wiki/10.-Dynamic-Twig-SEO-Meta" rel="nofollow noreferrer">this page</a>, you can try this:</p>
  
  <pre><code>{% set og = seomaticMeta.og %}
  {% set og = og | merge({'title': 'How to: ' ~ seomaticMeta.og.title}) %}
  {% set seomaticMeta = seomaticMeta | merge({'og': og}) %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-20T16:26:07.017Z
Answers.Text: I checked this out but my concern is that it would add "how-to" to all of the open graphs for the entries site. I don't want the og for other parts of the website to saw "How To'. Is there a way to test something like : if entry equals article then set og this way, if not set it another way? Or is that crazy talk.
Answers.UserDisplayName: Lily K
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-23T08:46:44.893Z
Answers.Text: You have 2 options: 
  1. You can create special template for How-To articles and add this code only into this template
  2. You can add a How-to lightswitch field in the control panel, then check in the template if it is true and add the code above.
Answers.UserDisplayName: Michal Bulla
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-04T15:11:48.863Z
Answers.Text: Thank you for this suggestion! I'll let you know once I've implemented it.
Answers.UserDisplayName: Lily K
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-20T07:56:13.053Z
Answers.LastActivityDate: 2018-04-20T07:56:13.053Z
Answers.UserDisplayName: Michal Bulla
Body: <p>I am using SEOmatic on Craft 2 and want to give the user the ability to customize the Title field of Facebook's OpenGraph Title. For example, instead of showing just the Title, add a "How To" before the title is displayed. <a href="https://i.sstatic.net/ccgc5.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ccgc5.png" alt="Article title only"></a></p>
  
  <p>vs. <a href="https://i.sstatic.net/TDoew.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/TDoew.png" alt="enter image description here"></a></p>
  
  <p>Is there a way to do this without using a custom field and have the "How To" only display only on when the article is shared on Facebook? </p>
  
Tags: <plugin-seomatic>
Title: Customization Facebook OpenGraph Title
ThreadText: # Customization Facebook OpenGraph Title
  
  (Asked by: username_0 on 2018-04-19)
  
  I am using SEOmatic on Craft 2 and want to give the user the ability to customize the Title field of Facebook's OpenGraph Title. For example, instead of showing just the Title, add a "How To" before the title is displayed. [![Article title only](https://i.sstatic.net/ccgc5.png)](https://i.sstatic.net/ccgc5.png)
  
  vs. [![enter image description here](https://i.sstatic.net/TDoew.png)](https://i.sstatic.net/TDoew.png)
  
  Is there a way to do this without using a custom field and have the "How To" only display only on when the article is shared on Facebook?
  
  **Tags:** plugin-seomatic
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-04-20. Score: 1 | Accepted answer
  
  Referring to [this page](https://github.com/nystudio107/seomatic/wiki/10.-Dynamic-Twig-SEO-Meta), you can try this:
  
  ```
  {% set og = seomaticMeta.og %}
  {% set og = og | merge({'title': 'How to: ' ~ seomaticMeta.og.title}) %}
  {% set seomaticMeta = seomaticMeta | merge({'og': og}) %}
  
  ```
  
  > **Comments:**
  > **username_0**: I checked this out but my concern is that it would add "how-to" to all of the open graphs for the entries site. I don't want the og for other parts of the website to saw "How To'. Is there a way to test something like : if entry equals article then set og this way, if not set it another way? Or is that crazy talk.  
  > **username_1**: You have 2 options:  1. You can create special template for How-To articles and add this code only into this template 2. You can add a How-to lightswitch field in the control panel, then check in the template if it is true and add the code above.  
  > **username_0**: Thank you for this suggestion! I'll let you know once I've implemented it.  
  
  ---
  
  