First time here? Check out the FAQ!
2

Social Sharing fails silently if JSONP request fails

I attempted to share a link to a question on my Askbot hosted site on Facebook. I clicked on the Facebook icon, but nothing happened. I clicked on it a few times, and nothing continued to happen:

Social sharing buttons.

I checked my web inspector, and I noticed that the JSONP request was getting a 503 response:

Screen shot of web inspector indicating that the request to json-tinyurl.appspot.com was returning a 503.

(right-click and select "Open Image in New Tab" to view full-size)

There should probably be some kind of feedback when these requests fail.

todofixthis's avatar
1.3k
todofixthis
asked 2012-04-24 23:03:15 -0500, updated 2013-01-06 19:13:12 -0500
edit flag offensive 0 remove flag close merge delete

Comments

Also, something should be done about those pesky 503 errors, but aside from that, we need better feedback when the requests fail (:

todofixthis's avatar todofixthis (2012-04-24 23:03:59 -0500) edit

Also also, the notice about event.layerX and event.layerY being deprecated also occurs when I click on the Facebook icon as well (also present in the screenshot).

todofixthis's avatar todofixthis (2012-04-24 23:05:54 -0500) edit
add a comment see more comments

1 Answer

2

Seems to be a problem with http://json-tinyurl.appspot.com/ and google app engine, we'll have to change this provider because it will fail if their free GAE quota is exceeded.

I've just tried to share with fb on your site and it worked.

Fitoria's avatar
1.1k
Fitoria
answered 2012-04-25 10:28:04 -0500
edit flag offensive 0 remove flag delete link

Comments

Verified. Thanks!

todofixthis's avatar todofixthis (2012-04-25 12:15:27 -0500) edit
2

Hi, 7 months later and the problem still exists. Can you either exchange the provider or just use the full URL if tinyurl replies with 503?

siovene's avatar siovene (2012-11-08 00:00:45 -0500) edit
2

Hey, I wrote a patch to disable tinyurl and optionally provide one's own short url for questions: https://github.com/ASKBOT/askbot-devel/pull/100

siovene's avatar siovene (2012-11-08 06:07:29 -0500) edit
add a comment see more comments