How to handle Unicode (Danish) characters in URLs while sharing on Facebook? - facebook

We have an eLearning Portal developed in Danish language. URL of the contents contains some native danish characters. If i open that URL in my browser window it opens perfectly fine. But when I try to share url over facebook. It is showing me error. I tried debugging using Facebook's Link testing tool. It is showing me error and I am not able to understand what is the root cause.
Here is the link I used for testing
http://www.zanicura.com/ElearningView/2849/Genoptr%C3%A6ning-efter-hjerneskade
It works fine in Browser but Facebook debugger is showing error.
Has anyone tried using Unicode while sharing link on Facebook?
Any information will be highly appreciated.
Thanks

It looks like a bug in the Facebook tool—it's going into an endless UTF-8-encode loop.
You might be able to fix it by replacing the IRI in the page:
<meta property="og:url" content="http://www.zanicura.com/ElearningView/2849/Genoptræning-efter-hjerneskade">
With a proper URI-encoded version (%C3%A6 instead of æ).

Related

Facebook object debugger getting 500 response code but only on some pages?

I am trying to get facebook open graph action to work, however, the object debugger tells me it is getting response code 500 from the pages I want to use. When I try to paste the URL into Facebook to share, sometimes it says runtime error and sometimes it works, sometimes it just gets part of the image.
For example: http://www.literrater.com/book/10
This fails the debugger entirely with a 500 code
https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.literrater.com%2Fbook%2F10
That same URL works when posting a status, sometimes.
Any suggestions about what I can do to fix this or at least diagnose the problem?
Edit: The site is hosted on windows azure as an asp.net web site. The blog at http://literrater.com/blog is php and the OG debugger seems to like it just fine.
I'm was having this same problem, and I'm using partial views on the pages in question, but I'm not convinced it's a Mobile only view that is your problem. Try the Open Graph debugger here: https://developers.facebook.com/tools/debug/ to see if that helps you diagnose your problem. Are you using the og properties? My page worked after I added the meta property="og:type" content="article" to the header. My homepage worked by setting the og:type to website, but that wouldn't work for other pages on my site. I hope this helps you.
A partial view being called in a MOBILE only razor view was being accessed and throwing an error. So while it worked in a desktop browser it was likely crashing on mobile.

Facebook shared links not opening (Not redirecting correctly)

I have been in a problem and after hours of searching find nothing useful to counter it. I have a website, and that website has RSS feed attached to facebook page. As I post the content to website it also appears on facebook page. But I have people complaining on my page that my posts don't open when they click the link to read the details. Since I am a Chrome user and didn't notice this happening for months. But as I checked it through firefox and Internet Explorer, I found the links shared actually don't open with these browswers. They only work in Chrome, means they are properly redirected in chrome browser and not in firefox and IE. Whenever I click on links of posts on my page through IE or firefox the url does not simply redirect to my website and I get to see nothing as if I am not connecting to Internet. When examining URL I see this:
http://www.facebook.com/l.php?u=http%3A%2F%2Fbit.ly%2F112NVO9&h=EAQHDgTUv&s=1
Which shows that facebook is not redirecting the links properly.
Moreover I also use link shortening service bit.ly to shorten my shared links. I have checked same problem exists even if I don't shorten my links. And I checked I am not alone, even the tech giant website mashable.com links also don't open in IE and FF from facebook, they only open in Chrome.
From mobile phone the links don't open (redirected properly) even in chrome.
Can anyone tell me what is the issue? Nothing much is written about it on Internet as no once has faced this problem.
P.S: I have checked from different systems, the problem persists.
Thanks for your help.
I would be more nice, if you mention What is your Actual Link and where is it going. Normally this happens due to Virus.
I have clicked the Above Link and It Followed me to http://www.pakistanplacement.com/2013/06/jobs-in-oracle-corporation-territory.html Blogger page.
This worked same on IE, Mozilla and Chrome.
If you are viewing different Results on Different Browser, Your Browser might be victim of Adware. So Try to scan your Computer and check the Add-Ons installed in browser.
Hope it helps,
John Bhatt
I just found this http://goo.gl/WA2YyE url on a www.facebook.com/RecruiterPk and it redirects me to http://www.recruiter.com.pk/job/ and works absoltly fine.

The facebook debugger is giving 500 error

The facebook debugger is giving 500 error for your webpage. It is unable to get my og metatags values. However, og metatags are present in the web page:
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fstaging.eco.ca%2Fcommunity%2Fblog%2F5-fascinating-green-jobs-youve-never-heard-of%2F68170%2F
Take a look at your IIS configuration. Something in there is refusing connections from anything that isn't a web browser.
Your page returns a 500 error for the W3C validator also.
For me it was because when Facebook, Google or other robots access the page, they don't send a language like a browser does, and in the code we were using the browser language to determine the content language.
I want to share my experience about this facebook debugger 500 error. I was getting this error without any explanation on facebook debugger. I checked my server side and domain records, tried what I found on internet with no luck. It took me long time to discover the problem.
Problem was I was sharing url within a restricted area in my website while sharing for first time. Let me explain, I have a test page in my cms, before I publish anything, I test if everything's ok. I realised whenever I test a content, facebook tries to crawl site, but it's in a restricted area. So I moved anything about facebook from my test page.

FB og:image getting recognized but not showing up FB:like

Currently I am implementing a fb like with image og:image with it. If you go to the link of the debug you will find out that the picture works. I can get the picture recognized but it's not showing up on the debug or when liking it. Do you have any suggestions? The website is https://www.mansettispizza-hamlake.com for the open-graph meta data. I know the site doesn't valid for the w3c but that shouldn't be causing any issues. I tried switching it to jpg as well and using link rel="image_src" as well.
http://developers.facebook.com/tools/debug/og/object?q=https%3A%2F%2Fwww.mansettispizza-hamlake.com
https://www.mansettispizza-hamlake.com/wp-content/themes/wisewordsfromwoo/images/Mansettis.png
I tried to switch it to
https://www.mansettispizza-hamlake.com/wp-content/uploads/2011/07/house-special-pizza-mansettis-pizza-best-pizza-blaine-pizza-chanticlear-broadway-150x150.jpg
Remove SSL and it will work! I had the same problem and just resolved it by throwing away SSL.

Preview of website - error - when clicking "Like" on my website

I have added a Facebook Like-Button to my website, which works perfectly. It shows the perfect link to my website on the wall of the persons who click it.
There's only one problem and I can't seem to solve it in any way.
The link also includes a preview of my website, but instead of a complete preview or a preview of my header it shows a picture of one of the link-buttons of my website!
The script itself doesn't contain anything to change or set a preview picture and changing names of pictures, links and header doesn't solve it either. No matter what I do, it still keeps on showing the button...
What can I do bout it?
I've contacted my serverhost but they don't know it either?
You can set the image that shows on Facebook with the following og tag in the head of your page:
<meta property="og:image" content="http://example.com/image.jpg" />
Facebook requires some more open graph tags. (Formerly known as meta tags.)
You have to make sure the facebook linter correctly interprets your page. Use the Facebook debugger to check and fix all issues.
try to refresh facebook catch by submitting link here . If you still have problem , you can provide custom images by with open facebook graph . Refer