sharing questions - tiny url problem
I am having a problem when I try to share questions (through any of the social networks) because of tinyurl.
When I share a question, the url I am passing as a parameter is undefined
Here is the url: http://www.linkedin.com/shareArticle?mini=true&url=undefined&title=test%20question%201202
This is the ajax call I am doing:
If I try to make the same call in a direct call I am getting this message:
jQuery17208261362977791578_1337297739022({"ok": false, "error": "The API call urlfetch.Fetch() required more quota than is available."})
Does any of you have the same problem? Is it anything broken in the latest sources or I destroyed something? I am running askbot 0.7.42.
Bu the way, if I replace in post.js this line
url = url.replace('{URL}', data.tinyurl);
with this line
url = url.replace('{URL}', URL);
sharing is working! But not with tiny urls.
Any advice?
Comments
It seems that there is a quota problem
Looks like we need a fallback from the shortener service to full urls.
Possibly related: http://askbot.org/en/question/7244/social-sharing-fails-silently-if-jsonp-request
@todofixthis Yes! You are 100% right, my question is indeed related with this post. However, now problem seems to be solved, since server responds with no quota problem. I agree with @Evgeny that a fallback should be added. Something like "if tinyurl is undefined then use the whole url"
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