Forums / Setup & design / Facebook integration

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

eZ debug

Timing: Jan 29 2025 13:36:02
Script start
Timing: Jan 29 2025 13:36:02
Module start 'content'
Timing: Jan 29 2025 13:36:02
Module end 'content'
Timing: Jan 29 2025 13:36:02
Script end

Main resources:

Total runtime0.1353 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.9219180.8438
Module start 'content' 0.00610.0056 768.765697.9922
Module end 'content' 0.01170.1235 866.7578526.0000
Script end 0.1352  1,392.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.5439200.0002
Check MTime0.00130.9580200.0001
Mysql Total
Database connection0.00090.687510.0009
Mysqli_queries0.090767.01811410.0006
Looping result0.00110.82971390.0000
Template Total0.123191.010.1231
Template load0.00080.573710.0008
Template processing0.122490.452510.1224
Override
Cache load0.00050.387410.0005
Sytem overhead
Fetch class attribute can translate value0.00060.437610.0006
XML
Image XML parsing0.00020.163410.0002
General
dbfile0.00836.1720200.0004
String conversion0.00000.004630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs