Forums / Setup & design / Facebook integration
Timo Bahr
Sunday 13 June 2010 7:18:21 am
Hello friends in need!
I cant find anything about integration of facebook into ez Publish! O'm Using Version 4.2.0 and i want to include a "Like-Box", a "Facebook Coment-Box and an "iLike Button (for Articles). I installed Facebook Connect but it didnt work. I tryed using iFrames, it dint work.
I activated HTML ( ithink so) but it doesnt work.
Lot of "Questions" do you have any answers?
André R.
Sunday 13 June 2010 2:08:59 pm
Most of the questions are better put on the facebook connect and developer forums.
One thing to make sure works is if you use xd_receiver.htm file for fb communication, make sure it's not blocked as in rewrite rules doesn't work. So open the url in your browser to make sure it is not served by eZ Publish (if it's not working you'll get an error page from your own site instead of the html in the xd_reciver file)
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom
Håvard Bergersen
Tuesday 22 June 2010 6:38:16 am
The "like button" is easily done:
(of course you have to change the settings so suit your needs)
<iframe src={concat( 'http://www.facebook.com/plugins/like.php?href=', $node.url|ezurl('no', 'full'), '&layout=standard&show_faces=false&width=450&action=like&colorscheme=light&height=35')} scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>
Tuesday 22 June 2010 1:09:37 pm
Thanks! I found the code you posted on another site but its a most easier way to add
$node.url|ezurl
instead of the whole url!
Andy Boston
Friday 10 September 2010 3:01:21 am
Hi,
I'm trying to add this to a blog post.tpl
thing is, it works fine on the actual blog post but it doesn't appear in the blog list under the text.
If I paste the code into the body using a literal tag then that gives me the effect I want but it's very time consuming.
Is there a way to make it automatic???