Topic-icon Something blocking for visible embed posts from Facebook

Active Subscriptions:

None
11 years 9 months ago - 11 years 9 months ago #46883 by alechu
I'm try embed this message from Facebook on my site in this news , but i'm not see "embed FB message" on front-end on my site.

I see this message from FB, if i'm click on preview in CKEditor. but this is code not loading and message not visible on front-end.

i'm test this embed on 2 my sites on Joomla 2.5 and not see FB message. (both sites with JFBconnect).

i'm test this embed FB post on my Joomla 3.3 site without JFB, and i see message, it work.
Last edit: 11 years 9 months ago by alechu.
The topic has been locked.
Support Specialist
It looks like you're trying to use some other method than JFBConnect to embed the post. Please just add the following tag to your article, and you should be good to go:
{JFBCEmbeddedPosts href=https://www.facebook.com/TylertheCreatorOfficial/posts/306174382898565}
You should remove this whole block, which is only causing issues:
<script>(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/ru_RU/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script><div class="fb-post" data-href="https://www.facebook.com/TylertheCreatorOfficial/posts/306174382898565" data-width="466">
	<div class="fb-xfbml-parse-ignore">
		<a href="https://www.facebook.com/TylertheCreatorOfficial/posts/306174382898565">публикация</a> <a href="https://www.facebook.com/TylertheCreatorOfficial">Tyler the Creator</a>.</div>
</div>
I hope that helps!
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 9 months ago - 11 years 9 months ago #46893 by alechu
i'm just use standart code for SHARING post from Facebook, look:



and i'm use this settings:
Last edit: 11 years 9 months ago by alechu.
The topic has been locked.
Support Specialist
Please don't use that code. It's re-including the Facebook Javascript library, which is what you do not want to do. Again, I'd recommend the method above. You can simply link to any post on Facebook using the {JFBCEmbeddedPosts href=...} syntax and it will just work. It also won't cause other issues since you're doing it the way that JFBConnect expects and not re-including any unnecessary Javascript files.

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