Version 5 of the Facebook PHP SDK is a complete refactor of version 4. It comes loaded with lots of new features and a friendlier API.
joined to list of fields to be cast to \DateTime (#950)GraphPage::getFanCount() to get the number of people who like the page (#815)application/octet-stream MIME type for SRT files (#734)GraphEdge in some cases (#715): character. (#679)cover field to GraphCoverPhoto and picture field to GraphPicture in GraphPage. (#655)getCover() and getPicture() to GraphPage. (#655)polyfills.php file wasn't being included properly when using the built-in auto loader (#633)FacebookUrlDetectionHandler (#626)FacebookRedirectLoginHelper::getLoginUrl() where the CSRF token gets overwritten in certain scenarios (#613)Facebook\Facebook super service for an easier APIgraph.beta.facebook.comgetMetaData() to GraphEdge to obtain all the metadata associated with a list of Graph nodesPersistentDataInterface for custom persistent data handlingPseudoRandomStringGeneratorInterface for customizable CSPRNG'sUrlDetectionInterface for custom URL-detection logicException\* directoryGraphNodes\* directoryHelpers\* directoryFacebookSession in favor of the AccessToken entityFacebookClient serviceFacebookRequestException to FacebookResponseExceptionFacebookHttpable to FacebookHttpClientInterfaceFacebookApp entity that contains info about the Facebook appHttpClients, PersistentData and PseudoRandomString factories to reduce main class' complexityfunctional groupext-mbstring to composer requireSince the Facebook PHP SDK didn't follow SemVer in version 4.x, the master branch was going to be released as 4.1. However, the SDK switched to SemVer in v5.0. So any references on the internet to version 4.1 can be assumed to be an alias to version 5.0.0
Version 4.0 of the Facebook PHP SDK did not follow SemVer. The versioning format used was as follows: 4.MAJOR.(MINOR|PATCH). The MINOR and PATCH versions were squashed together.
v2.3FacebookPermissions class to reference all the Facebook permissions4.0.19 related to CSRF comparisonsSignedRequest and FacebookRedirectLoginHelperFacebookHttpable] Reverted a breaking change from 4.0.17 that changed the method signaturesFacebookRedirectLoginHelper] Added multiple auth types to getLoginUrl()GraphUser] Added getTimezone()FacebookCurl] Additional fix for curl_init() handling/videosFacebookRedirectLoginHelper] Added "reauthenticate" functionality to getLoginUrl()FacebookCurl] Fixed curl_init() issueFacebookRedirectLoginHelper] Added guard against accidental exposure of app secret via the logout linkGraphUser] Added getGender()FacebookRedirectLoginHelper] Added CSRF protection for rerequest linksGraphAlbum] Fixed bugs in getter methodsFacebookRedirectLoginHelper] Added $displayAsPopup param to getLoginUrl()FacebookResponse] Fixed minor pagination bugDigiCertHighAssuranceEVRootCA for peer verificationv2.2type param in URL'sFacebookRedirectLoginHelper] Added getReRequestUrl()GraphUser] Added getEmail()FacebookCurlHttpClient] Added a method to disable IPv6 resolutionGraphObject] Fixed improper usage of stdClassopen_basedir directive setCanvasLoginHelper] Removed GET processingFacebookSession::useAppSecretProofFacebookPageTabHelper] Added ability to fetch app_dataGraphUserPage Graph node collectionhttp_build_query()FacebookCurlHttpClient] Updated the calculation of the request body sizeFacebookRedirectLoginHelper] Implemented better CSPRNGappsecret_proof by defaultFacebookPageTabHelperFacebookSession] Fixed issue where validateSessionInfo() would return incorrect resultsFacebookCanvasLoginHelper] Fixed bug that would throw when logging outFacebookRequest] Added appsecret_proof handlingGraphAlbum Graph node collectionJavaScriptLoginHelper] Fixed bug that would try to get a new access token when one already existedsdtClasscomposer.json] Upgraded to use PSR-4 autoloading instead of Composer's classmapFacebookCanvasLoginHelper] Abstracted access to super globalsFacebookRequest] Fixed bug that blindly appended params to a urlFacebookRequest] Added support for DELETE and PUT methodsFacebookSDKExceptionFacebookSession] Signed request parsing will throw on malformed signed request inputFacebookRedirectLoginHelper] Changed scope on $state propertyphpunit.xml] NormalizedHow can I help you explore Laravel packages today?