Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Include JS FB Connect in 3rd party extensions

7 years 7 months ago
  • Mike's Avatar
    Topic Author
  • Mike
  • Offline
  • Fresh Boarder
  • Thank you received: 1
Licenses:
JomSocial Active

Hi
I would like to add JomSocial's FB Connect button in a 3rd party extension. Is there a simple API I can use to generate the necessary HTML/JS codes?

7 years 7 months ago
  • Mike's Avatar
    Topic Author
  • Mike
  • Offline
  • Fresh Boarder
  • Thank you received: 1
Licenses:
JomSocial Active

Found the answer to my question.

require_once(JPATH_SITE.'/components/com_community/libraries/core.php');
$facebook = new CFacebook();
$fbloginbutton = $facebook->getLoginHTML();

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW