StumbleUpon Badge created with Layout 3 displayed only "Show" instead of Number of view

  • Problem
  • Updated 2 years ago
Archived and Closed

This conversation is no longer open for comments or replies and is no longer visible to community members.

I followed the guide from here: http://www.stumbleupon.com/dt/badges/...

Added the badge with layout=3. The badge came out nicely, but with only "Submit" displayed beside it, I was expecting the number of views or count. Anyone has any idea why?

Ming

  • 3 Posts
  • 0 Likes

Posted 2 years ago

  • 1

Gladsdotter, Champion

  • 158 Posts
  • 40 Likes
It will always say Submit until someone has added the page to SU. If you are seeing this on a page that you know has already been submitted, it would help to know the specific URL.

Ming

  • 3 Posts
  • 0 Likes
When I query information with REST API provided, I can see the number of views return in JSON. Here is the query:
http://www.stumbleupon.com/services/1...

and the JSON responsed with views:52580 as for today:
{"result":{"url":"http:\/\/www.goradio.com\/allin\/music-scene\/... To Sneak Liquor Into a Concert - Music &Scene - #Allin","thumbnail":"http:\/\/cdn.stumble-upon.com\/altmthumb\/407\/110969407.jpg","thumbnail_b":"http:\/\/cdn.stumble-upon.com\/altbthumb\/407\/110969407.jpg","submit_link":"http:\/\/www.stumbleupon.com\/submit\/?url=htt...}

But if you go to the page and view the SU badge, it is without count.

Gladsdotter, Champion

  • 158 Posts
  • 40 Likes
It looks like the URL in your badge is not the same as the URL in your JSON query. Whereas the main page URL from your query does have some 52k views, the badge URL includes ?g=true on the end of it, which makes SU think it's a completely different URL, one that has never been submitted.

Ming

  • 3 Posts
  • 0 Likes
Thanks for the hint. The page is using iframe, and the URL for the iframe is with the HTTP request query.

I got it works now by adding the "location" attribute into the su:badge tag

Thanks again for the helps

This conversation is no longer open for comments or replies.