Topic-icon JFBLike module is not publishing special some characters like Æ Ø Å

Active Subscriptions:

None
Hi Support

I am using JFBConnect's Like button to like users profile. Its successfully posting user's profile picture and link on facebook but not displaying some special characters.
I have a user Allan Ærenlund Lock but his name is not displaying properly on facebook. Please view the attached snapshot.
File Attachment:


Can you please help me here.

Thanks
Devendre
The topic has been locked.
Support Specialist
devendre,
Can you let me know what URL this is happening on? Also, what version of JFBConnect are you using?

I know with our v5.0.1 release, we had a change titled "Bug Fix: Open Graph - og:description issues with UTF-8 characters". It's likely that is the fix you'd need. Please see the full changelog for more information.

We also just released v5.1 with a lot of new features, including Google+ integration and a lot of other improvements. Upgrading to the newest releases will likely help with many issues you have or may encounter.

I'm not sure what version you're currently using, but you'd need an active subscription to update JFBConnect.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
Hi Alex

Our website in using JomSocial and we applied jfbLike module on users profile page to like users profiles. This feature is working properly. But there is one problem that while sharing the profile on facebook it is not accepting user names properly. For example we have a user 'Allan Ærenlund Lock ' but while sharing it is not getting its name properly. It is sharing this name 'Allan Ãrenlund Lock', replacing Æ with Ã, which is wired.

It is also not displaying Ø Å characters properly. To test or view it you can login our site faceday.dk and Allan Ærenlund Lock, then try to like his profile. You will understand my problem.

We are using v5.0.1 version of JFBConnect, purchased it just last month.

Can you tell me the file structure from where it is getting user names and message, i can apply my own code there to resolve it.

Waiting for your reply.

Thanks
Devendre
The topic has been locked.
Active Subscriptions:

None
Hi Alex.

Devendre is working as a developer at our site.
We just changes all text files to the correct UTF-8 - but the usernames of the profiles is still shown as Devendre is mentioning.
Just confirming our subscription of the new version 5.01.

Please reply as soon as you can with source of where JFB is retrieving the usernames from - as they are correct displayed on our site,
and JFB actually CAN display Æ Ø and Å characters (we use those characters in our login-procedure where they are shown correct) - this must be
a single text file input wich is in ANSI instead of UTF-8 -we just need to find it.

Thanks.

Danny.
The topic has been locked.
Support Specialist
Danny/Devendre,
Sorry for the delay. I just had a chance to find the profile on your site that you were talking about.

Looking at the HTML on the page, everything looks correct. If you look at the source HTML, search for og:description and you'll see that the string looks correct.

Additionally, if you run that page through the Facebook URL Debug Tool , you'll see that it's properly showing the description there. In all cases the på is coming through correctly with it's UTF-8 character.

I'm not sure what's going on, but it seems like an issue on Facebook's side. Please feel free to confirm what I said above and if you do see anything incorrect, let me know.

Finally, if you want to alter the code in some way, the tags are actually generated and inserted into the document in the /libraries/sourcecoast/OpenGraph.php file. Search for the toString function and, specifically, the line below is what's used to generate the og: tags in the head:
$graphValue .= '<meta property="' . $this->name . '" content="' . $tagValue . '"/>' . CARRIAGE_RETURN;

I hope that helps get you started investigating, but again, please confirm everything above or tell me if you see something out of the ordinary.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 8 months ago - 10 years 8 months ago #36256 by devendre
Hi Alex

I also checked source of our website and its is showing correct value in meta tags. But the problem is different.
I need to know the code from where it is creating the dialog box when opens when we click on like button. Please see the attached image and i hope you will be clear about my problem or queries.

Thanks
Devendre
File Attachment:
Last edit: 10 years 8 months ago by devendre.
The topic has been locked.
Support Specialist
Devendre,
There is no code that's generating the text in those boxes. There's a little bit of Javascript that tells Facebook to generate the Like box. It's then created completely by Facebook by reading the Open Graph tags on your site. You can see the tags it sees using the Open Graph debug tool.

You can test the Like button directly on their site as well. You'll see that all you do is enter a URL and Facebook determines the rest of the information. There isn't any option to specify the title, description or image because that's all set through the Open Graph tags which are working properly.

I'm not sure what's going wrong on that page. Can you tell me if other pages on the site have the same issue and is it just that special character or others? As mentioned, it seems like some special characters are coming through, so this may be a Facebook specific issue with those letters for some reason.

I hope that helps explain further,
Alex
The topic has been locked.
Active Subscriptions:

None
Hi Alex

Thanks, issue has been resolved :)

Devendre
The topic has been locked.
Support Specialist
Devendre,
Glad to hear you got it going. If you found any issues with JFBConnect or think we should be aware of anything you fixed, please let us know so we can investigate or add it to the next release.

Thanks,
Alex
The topic has been locked.