Thursday, May 3, 2012

Add facebooklike button in phpBB3 forum

 I followed the procedure to add facebook like in phpBB3 forum, I used style subsilver2.
1) Under /public_html/phpBB3/styles/subsilver2/template/viewtopic_body.html
Before <div class="postbody">{postrow.MESSAGE}</div>, add
<iframe src="{S_FORUM_ID}
%26t%3D{S_TOPIC_ID}&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe>
    <fb:like href="{S_FORUM_ID}&amp;t={S_TOPIC_ID}" layout="standard" show_faces="true" width="450" action="like" colorscheme="light" />

2) Go to phpBB3 ACP board, under General and find purge cache and select run now at right panel.
3) The facebook like button is shown nicely in at the post body in each post.
 4)  But when I click the facebook like button. The red error is shown.
I Google the web and found is blocked by facebook like.
My phpBB3 forum:

1 comment:

  1. Me too encountered same problems.