Facebook integration

Facebook integration

Sunday 13 June 2010 7:18:21 am - 4 replies

Author Message

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'), '&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=35')} scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>

Timo Bahr

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???

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.