SOCIAL-PACKAGES-001
JFacebook / JGoogle / JTwitter
Facebook / Google / Twitter social packages
Core social API packages were deleted.
JFacebook / JGoogle / JTwitter → Third-party OAuth libraries
What you will see
- Class "JFacebook" not found
- Class "JGoogle" not found
- Class "JTwitter" not found
- Class "JLinkedin" not found
Symptoms people search
social login fatal
Replace this code
Swap JFacebook / JGoogle / JTwitter for Third-party OAuth libraries.
Joomla 3
Remove or stop calling this
$fb = new JFacebook($oauth);Joomla 4 / 6
Use this instead
// Removed from Joomla 4. Use League OAuth2 / official SDKs.How to fix it
- 1Replace with Composer OAuth packages.
- 2Do not expect class aliases.
Also known as
JFacebook · JGoogle · JTwitter · JLinkedin · JOAuth1 · JOAuth2
There is no 1:1 swap for this one. The architecture changed. If you cannot rewrite it, Infyways can.
Related issues
- Joomla 3 → 4Joomla API
JRequest::getVar() and the whole JRequest API
JRequest::getVar() → $app->getInput()->get('id')
- Joomla 3 → 4Joomla API
JError / JException
JError::raiseError() → throw new RuntimeException() / try-catch
- Joomla 3 → 4Joomla API
isAdmin() / isSite()
$app->isAdmin() → $app->isClient('administrator') / isClient('site')
- Joomla 3 → 4Joomla API
Factory::getUri()
JFactory::getUri() → Uri::getInstance()
- Joomla 3 → 4Joomla API
Factory::getXml() / JXMLElement
JFactory::getXML() → SimpleXMLElement
- Joomla 3 → 4Joomla API
Factory::getEditor()
JFactory::getEditor() → Editor::getInstance()