HTML Logo by World Wide Web Consortium ( Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS. ocPortal 9 is superseded by Composr 10.

Head over to for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.

Facebook support

This addon provides substantial Facebook integration for your ocPortal website.

  • User's can log in to your site using their Facebook profile (for OCF-sites only)
  • New Facebook Friends block (allows users to like your site and shows those that have)
  • New Facebook Site activity feed block
  • New Facebook Facepile block (shows people who like your site or have signed in using Facebook)
  • New Facebook 'Like button' block (linked into the main_screen_actions block by default)
  • New Facebook Comments block

For this addon to work you need to configure ocPortal's Facebook configuration settings, which includes getting a Facebook app ID.

Please be aware that this addon overrides some common templates to add Facebook functionality to them, such as LOGIN_SCREEN.tpl and BLOCK_SIDE_PERSONAL_STATS_NO.tpl.

To use the Facebook login support your Facebook app needs to be told the domain name you are using. This is for security reasons and because it saves login cookies to this domain. It can't be a domain like 'localhost' or 'mycomputer', so if you are testing on a local computer you will need to create an imaginary domain name and link it into via your computers 'hosts' file.

How to use the Facebook friends block

The Facebook friends block adds a list of your facebook fans to your website.
Example Comcode to use it:


'stream' is either "1" or "0" – 1 is you would like the stream to display, 0 means you don't.

'fans' is the number of fans you want the block to display.

'show_fanpage_link' is either "1" or "0" – 1 is you would like to display a link to the fan page, 0 means you don't.

'fanpage_name' is the name you want to display on the link to the page.

'logobar' is either "1" or "0" – 1 is you would like to display a facebook logo on within the block, 0 means you don't.


Licensed on the same terms as ocPortal


Licensed on the same terms as ocPortal

Additional credits/attributions

Icon by leslienayibe. Class by Facebook Inc.