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

Facebook support

This addon provides substantial Facebook integration for your ocPortal website.

Features:
  • User's can log in to your site using their Facebook profile (for OCF-sites only)
  • Links to the Facebook profiles of ocPortal profiles logged in via Facebook Connect
  • 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 127.0.0.1 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:

Code

[block stream="1" fans="10" logobar="1" param="80430912569" show_fanpage_link="1" fanpage_name="ocPortal Fans"]main_facebook_friends[/block]

'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.

'fan_profile_id' is the Fan Page ID in Facebook to find this you need to goto the fan page you want to take the data from the URL will be something like http://www.facebook.com/#!/pages/ocPortal/80430912569 you need the number at the end "80430912569" in this section.

'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.

License

Licensed on the same terms as ocPortal