Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Twitter sharing does not use the correct image
(1 viewing) (1) Guest
"ARI Stream Quiz" WordPress plugin
Go to bottomPage: 1
TOPIC: Twitter sharing does not use the correct image
#67245
Twitter sharing does not use the correct image 3 Years, 11 Months ago Karma: 0
Hello, I'm having the same problem with Twitter sharing as this user: www.ari-soft.com/ARI-Stream-Quiz/67116-Problems-with-social-sharing-and-progress-bar.html?_2021010501#67116

When I share results on Facebook, the image changes based on the quiz score. This is as expected.

When I share results Twitter, the image does not change based on the quiz score.

If there is a quiz image, ARI Stream Quiz will share this image on Twitter no matter what the results are.

If there is no quiz image, but there is a featured image, the featured image will be shared on Twitter.

If there is no quiz image or no featured image, no images will be shared on Twitter.

I ran several tests with images in different locations. You can see the different images that are shared on Twitter and Facebook for the same quiz.

-results images (in results tab)
-quiz image (in settings tab)
-featured image (wordpress page settings)
-image in body

TEST1: results images, no quiz image, no featured image, no image in body
www.englishgrammarfocus.com/test-your-english-test1/

TEST5: results images, no quiz image, featured image, image in body
www.englishgrammarfocus.com/test-your-english-test5/

TEST6: results images, no quiz image, no featured image, image in body
www.englishgrammarfocus.com/test-your-english-test6/
The administrator has disabled public write access.
 
#67247
Re:Twitter sharing does not use the correct image 3 Years, 11 Months ago Karma: 0
Ok, I think I see the issue now.

Using the Twitter Card Validator, I can see that Twitter is caching the image for the card that is posted on their side. Even if you were to use the image that is used for the results in <meta name=twitter:image:src"..., it would not update when we share it to Twitter.

I went into includes/class-plugin.php and hard coded "content" to a static value in '<meta name="twitter:image:src" content="%1$s">'. When I run the quiz, the image eventually does update, but for me it took about five minutes. I tried appending some random characters (?test123) to the URL and to the twitter:image:src value, but it doesn't seem to force a re-fetch.

It looks like the best thing that we can do for Twitter sharing is to upload a quiz image in settings or have a featured image for the page. Is this correct?
The administrator has disabled public write access.
 
Go to topPage: 1