Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+5 votes
742 views
in Q2A Core by

I am using AddThis image sharing widget on images on my site as you can see on the picture. When I share the image on Pinterest it always posts the right image, however when I share it on Facebook then it always pulls the image from the sidebar and not the image I was trying to share. AddThis said that I need to use Open Graph tags to fix the problem. 

So I use this plugin by @AmiyaSahu. https://github.com/amiyasahu/q2a-social-share as it was supposed to create Open Graph tags, but with this, it only pulls the image from the first answer and won't pull images from the following answers.

So my question is: How do I set up Open Grap tags so that the Question title will be og:title for the answer and the answer text will be og:description and the answer image will be og:image.  So if the question has 5 answers then og:title will remain the same as it will be the question title but each answer will have their own og:description and og:image.

Q2A version: 1.7.4

1 Answer

+1 vote
by

Use Q2A Ultimate SEO plugin and in "Social Sharing" tab enable "Auto Generate Open Graph from Page content" option.

...