I'm having a problem implementing facebook sharing
-
Hi. Hopefully someone can help me out here. I have created a quiz on one of my sites that hopefully will be good linkbait. But I'm having some issues with figuring out how to best get users to share this on facebook.
The quiz consists of two pages. The first contains each of the questions. I use jquery to hide and show each question. Then, the second is the results page. The results page has a dynamically generated title and shows a sharable badge depicting their results. So, for one user the results page may say, "I scored 100% on ABC Quiz!" and show a 100% badge. Another user may see, "Apparently I know nothing about ABC! I scored 16% on the quiz!". (Just examples, of course.)
If I use the facebook share button, the url that gets shared is the results page and obviously I don't want knew users ending up on the results page. I tried using a rel canonical on the results page (pointing to the original page) but then the dynamic title doesn't get shared.
Can anyone help?
-
Have you tried using the Open Graph meta data? It is my understanding the share button pulls information directly from og.
<meta property="og:url" content="http://www.mysite.com/polls/abc-quiz/" />
<meta property="og:title" content="I scored 100% of my ABC Quiz" />
-
Hi
Ryan is exactly right about this. Go to the facebook developers page to create the OG meta data. Specify whatever page you want to show up as shared within the OG meta tag.
-Dan