Topic-icon K2 Likes OK but all Comments are missing after upgrade

Support Specialist
I'm glad to hear we have a band-aid for the problem that gets you going now. It gives us the breathing room to find the cause, though this solution could last as long as necessary, which is nice.

Until we see the Joomla 2.5 site, we won't have any ideas. It will really help to know what versions of Joomla, JFBConnect, K2 and any SEF extensions you're using (if any) on that site so we can start narrowing things down. From there, the next thing would probably be to upgrade K2 and JFBConnect on the 2.5 site to see if the URLs change and keep whittling the problem down until we find the exact change that caused it.

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

None
8 years 3 months ago #56336 by dageke
...only problem now is notification. Is there a simple way to get email notification of new comments from the SCSocial Widget module...?
The topic has been locked.
Active Subscriptions:

None
8 years 3 months ago #56379 by dageke
...only problem now is notification. Is there a simple way to get email notification of new comments from the SCSocial Widget module...?
The topic has been locked.
Support Specialist
Have you setup comment notifications in the JFBConnect -> Social -> Notifications? If so, set it so that there is only one email address set in the email area. If that is setup properly, please make sure that your server email is configured properly and able to send emails. I just tested the URL that our Comment notification code should call when a new comment is created and it appears to work as expected.

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

None
8 years 3 months ago #56388 by dageke
The settings are fine. I get notifications from other components on this server (adsmanager) so that is not the problem.

I got notification about your test comment just now, so at this moment in time the system works. The first couple of days after I enabled the Widget I got no notifications of new comments. Does that make sense? Is there a delay with Facebook?

Best
The topic has been locked.
Support Specialist
There shouldn't be a delay with Facebook. The comment notifications are completely controlled by Facebook though. When a comment is posted, they trigger some Javascript within JFBConnect which, as you just tested, works. I would recommend testing further to see when comments do and don't come in to see if there's some pattern to it.

Unfortunately, we don't have any control over the comment box triggering our Javascript and there have been multiple reports in Facebook's own bug tracking system that the comment trigger doesn't always work as expected. Because of that, we're very limited in what we can do if the emails are sent correctly when it is triggered.

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

None
8 years 3 months ago #56397 by dageke
No end to this... :) there seems to be a problem with the Widget solution:

I clicked LIKE on a comment from a reader, and got a message from him saying, "Why have you deleted my comment?"

Turns out that the link Facebook sent to notify him about my LIKE led to a page with no comments:

www.thailandstidende.com/component/k2/it...5488#f1d5e3a22c0643a

( Here is the original link: www.thailandstidende.com/component/k2/it...forerkort-i-thailand )
The topic has been locked.
Support Specialist
That looks to be a bug in JFBConnect due to a slight change in how Facebook sends comment notifications. The issue is that Facebook is adding extra query string variables that JFBConnect needs to strip out so that the URL doesn't look like a different URL that should have it's own separate comments for.

Fortunately, it should be an easy fix. Can you please edit the /components/com_jfbconnect/libraries/utilities.php file. Around line 106, you'll see:
$juri->delVar('fb_comment_id');
After that, add the following 2 lines:
$juri->delVar('comment_id');
        $juri->delVar('reply_comment_id');
Once you do that, the link you provided above should show the comments correctly.

Let me know how that goes. I've already added this to our issue tracker and it should be included in the next release as well.

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

None
8 years 3 months ago #56423 by dageke
That seems to work, thanks!
The topic has been locked.
Support Specialist
Fantastic! I'm glad to hear that got you going. As noted, this fix should be in the next release as well.

Thanks,
Alex
The topic has been locked.