Topic-icon Where to change codepage

Active Subscriptions:

None
13 years 9 months ago #26358 by petjak
Hi guys,

please... im using JFBConnect on my site www.bikemagazin.sk and when im use LIKE button, in pop up window i see wrong codepage. You can see it in attachment. I have a new subscription, but i dont have any knowledge.
When i copy URL adress and on facebook i put it into field, codepage have no problem.
File Attachment:
The topic has been locked.
Support Specialist
13 years 8 months ago #26439 by alzander
Replied by alzander on topic Where to change codepage
Peter,
Sorry for the delayed response. I can't find the article you're posting about above. Can you link directly to that article so we can look into it further?

JFBConnect should be able to use the proper encoding of text from your article when posting to Facebook, but it doesn't seem to be doing so. We'll gladly look into why it's not, and possible solutions. Just need to see the page content first to test a little more.

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

None
13 years 8 months ago #26470 by petjak
Replied by petjak on topic Where to change codepage
Hi,

you can try this with other articles... for examplet today news:

www.bikemagazin.sk/clanky/podujatia/pozv...ce-of-hope-2012.html

This is not a problem with one article. You can try other articles too to test.
The topic has been locked.
Active Subscriptions:

None
13 years 8 months ago #26716 by petjak
Replied by petjak on topic Where to change codepage
The topic has been locked.
Support Specialist
13 years 8 months ago #26883 by alzander
Replied by alzander on topic Where to change codepage
Peter,
We've been testing and it turned out to be a very hard issue to understand and recreate. The issue only affects K2, which was hard to discover at first. Normal Joomla articles aren't affected. We think we finally found a good solution, and hopefully you can test it out and let us know if it helps.

Can you please edit the /plugins/content/jfbccontent/jfbccontent.php file. Around line 170, you'll see the following line of code:
SCArticleContent::addTextToArticle($article, $graphTag, "1"); //0=None, 1=Top, 2=Bottom, 3=Both
Change that "1" at the end to "2", so it looks like:
SCArticleContent::addTextToArticle($article, $graphTag, "2"); //0=None, 1=Top, 2=Bottom, 3=Both
There's another line around 185 that looks almost the same that requires the same change.

After you make the change, you'll need to use the Facebook URL Debug Tool to re-scan the page(s) from your site with the issue. Using the Debug Tool will show you what Facebook sees and also update their cache to make sure the old, wrong values, aren't used.

Please let us know if that helps fix your situation. We'll be putting this change into the next release of JFBConnect as it helps correct a separate issue as well, but would love to hear your feedback to know if it fixes this as well!

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

None
13 years 8 months ago #26891 by petjak
Replied by petjak on topic Where to change codepage
Hi Alex,

its looks good, i try it on some of articles, for everyone url i must use debug and when i give LIKE after that, its seems good. I will try it on some other atricles.

THANKS!
The topic has been locked.
Support Specialist
13 years 8 months ago #26894 by alzander
Replied by alzander on topic Where to change codepage
Peter,
Awesome! Very glad to hear that seems to be helping the situation. For all new articles/K2 items, the change should work immediately; for old K2 items, you'd need to wait for the Facebook cache to update or run the URL Debug Tool you've been using.

If you do run into other issues, just let us know. As mentioned above though, this fix will be included in the next release as well so hopefully you won't have to worry about it going forward.

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

None
13 years 8 months ago #26908 by petjak
Replied by petjak on topic Where to change codepage
Hi, today i posted 2 new articles, one with video and second with text only.

When i try to use LIKE button, it cannot be possible to correctly use it, because popup is showing only for 1-2 second and is automaticly closed.

This same i tried in Explorer and in Chrome too.

I made a video capture from screen, here is it:



after that i try again use debug tool, and debug for url www.bikemagazin.sk/clanky/ostatne/video/...a-downtown-2012.html and then everything was OK.
The topic has been locked.
Support Specialist
13 years 8 months ago #26914 by alzander
Replied by alzander on topic Where to change codepage
Peter,
That's actually normal behavior for brand new content. Facebook will automatically scan the page by itself after it's view by a user, but it can take about 30 minutes to an hour or so for that to happen sometimes. Once Facebook's seen a lot of your content though, it will make the Facebook button work immediately. Basically, they don't want the Like button to work until they are sure the page isn't spam, malicious, etc. That happens by them automatically scanning the page, or knowing enough about your site's content to automatically 'know' any new pages should be good too.

Scanning it manually just speeds the process up, as you've found.

Hope that helps, but if you need anything else, just let us know!

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

None
13 years 8 months ago #26961 by petjak
Replied by petjak on topic Where to change codepage
Hi Alex,

are you sure with that info about delay on FB like button? Because before the change in code i never had this problem.

Today im waited more than 5 hours, and still dialog about adding to FB not work correctly.

Every new article i must debug with FB tool.
The topic has been locked.