Topic-icon The comments are interrupted and impressed in the events

Active Subscriptions:

None
Hello
Glad to be with you
I have a problem after installing the application JFBConnect and it disappears the admiration and comments for the application of rsevents
I expect a conflict with the other application file facebook
Please help me find a solution
use JFBConnect: 7.2.1
use rsevents : Latest version

thank you very much
The topic has been locked.
Support Specialist
8 years 10 months ago #62276 by mel
Could you give me a specific URL where you're seeing the problem please? That way I can determine if there's another outdated Facebook javascript library being included on the page - this is the most common cause when other extensions have Facebook functionality and there's a conflict with JFBConnect.

-Melissa
The topic has been locked.
Active Subscriptions:

None
The topic has been locked.
Support Specialist
8 years 10 months ago #62282 by mel
I see two inclusions of the Facebook javascript library sdk.js on the site. This can definitely cause unknown/strange behavior on the site. Could you try to find the following block in RSEvents and comment out/remove its inclusion to see if the strange behavior is resolved?
<div id="fb-root"></div>
	<script type="text/javascript">
	(function(d, s, id) {
		var js, fjs = d.getElementsByTagName(s)[0];
		if (d.getElementById(id)) return;
		js = d.createElement(s); js.id = id;
		js.src = "//connect.facebook.net/ar_AR/sdk.js#xfbml=1&version=v2.4&appId=251348972036953";
		fjs.parentNode.insertBefore(js, fjs);
		}(document, 'script', 'facebook-jssdk'));
	</script>
	</div>

-Melissa
The topic has been locked.
Active Subscriptions:

None
8 years 10 months ago #62283 by omamos
Yes I found it but after deleting it or commenting it does not work admirable for Facebook and it is also normal that commenting does not work on Facebook which is important
Note that logging in from your application works well but disables it from returning Facebook comments and admiring events

<?php if (($event->comments && rseventsproHelper::getConfig('event_comment','int') == 1) || !empty($this->options)) { ?>
<div id="fb-root"></div>
<script type="text/javascript">
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/ar_AR/sdk.js#xfbml=1&version=v2.4&appId=<?php echo $this->escape(rseventsproHelper::getConfig('facebook_app_id')); ?>";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<?php } ?>
The topic has been locked.
Support Specialist
How did you remove that code? You can leave comments enabled in RSEvents, but the code above should not be included on the page. If you're disabling comments in RSEvents, that may remove the code above but would also disable comments.

Looking at the link you provided above, I don't see a comment box, but the code above is still on the page. It doesn't seem like the comment box is working at all right now.

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

None
8 years 10 months ago - 8 years 10 months ago #62288 by omamos
Hello
I appended my order file to show comments and admiration naturally
I deleted it and did not work comments nor admiration
But now the code is full When disabled JFBConnect the comment works and an admire button appears

show.zip[/url
Last edit: 8 years 10 months ago by omamos.
The topic has been locked.
Active Subscriptions:

None
8 years 10 months ago #62289 by omamos
Does this code have anything to do with your application?
Because when I stop System - JFBCSystem works the comments return without any intervention because it is activated in the control

FB.init({version: 'v2.4',appId: '179360335867542', status: false, cookie: true, xfbml: false});
FB.Event.subscribe('comment.create', jfbc.social.facebook.comment.create);
FB.Event.subscribe('comment.remove', jfbc.social.facebook.comment.remove);
FB.Event.subscribe('edge.create', jfbc.social.facebook.like.create);
FB.Event.subscribe('edge.remove', jfbc.social.facebook.like.remove);
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/ar_AR/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
The topic has been locked.
Support Specialist
Yes, that code is from our application. If disabling the JFBCSystem plugin fixes your problem, please:
* Enable the JFBCSystem plugin
* In the JFBConnect -> Configuration area, set "Always Parse Tags" to 'Yes'

That will have JFBConnect show the comments and like buttons included from other extensions.

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

None
8 years 10 months ago #62295 by omamos
The problem has already been resolved
Thank you so much
The topic has been locked.