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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
todofixthis's avatar
1.3k
todofixthis
asked 13 years ago, updated 12 years ago

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 (13 years ago)

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 (13 years ago)
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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Fitoria's avatar
1.1k
Fitoria
answered 13 years ago
link

Comments

Verified. Thanks!

todofixthis's avatar todofixthis (13 years ago)
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 (12 years ago)
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 (12 years ago)
see more comments