Facebook integration

Author Message

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'), '&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???

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

eZ debug

Timing: Jan 18 2025 02:04:19
Script start
Timing: Jan 18 2025 02:04:19
Module start 'layout'
Timing: Jan 18 2025 02:04:19
Module start 'content'
Timing: Jan 18 2025 02:04:20
Module end 'content'
Timing: Jan 18 2025 02:04:20
Script end

Main resources:

Total runtime0.8087 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 587.9063152.6250
Module start 'layout' 0.00480.0030 740.531339.4453
Module start 'content' 0.00780.7995 779.9766640.3906
Module end 'content' 0.80730.0014 1,420.367212.1719
Script end 0.8087  1,432.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3792160.0002
Check MTime0.00130.1615160.0001
Mysql Total
Database connection0.00060.070110.0006
Mysqli_queries0.751992.9681670.0112
Looping result0.00070.0919650.0000
Template Total0.778996.320.3894
Template load0.00220.267720.0011
Template processing0.776796.036620.3883
Template load and register function0.00010.016910.0001
states
state_id_array0.00150.186710.0015
state_identifier_array0.00090.115020.0005
Override
Cache load0.00190.2308280.0001
Sytem overhead
Fetch class attribute can translate value0.00060.069940.0001
Fetch class attribute name0.00110.130980.0001
XML
Image XML parsing0.00290.352440.0007
class_abstraction
Instantiating content class attribute0.00000.003380.0000
General
dbfile0.00230.2796290.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs