The upgrade to v2 is a complete pivot of the Facebook Query Builder. The FQB
object is completely stripped down and only generates nested request syntax URL's and nothing else.
If you're trying to upgrade from Facebook Query Builder v1 to v2, it might be better to familiarize yourself with the new API and how it is used with a 3rd party HTTP client to make requests to the Graph API.
- Removed all 3rd-party dependencies.
- Removed all HTTP client related code.
- Renamed
Edge
toGraphEdge
. - Renamed
RootEdge
toGraphNode
. GraphEdge
is now a child ofGraphNode
instead of the other way around. I must have been drunk.- Removed all the classes that were ported over to the official Facebook PHP SDK v4.1:
AccessToken
BaseGraphObject
&GraphObjectInitializer
(ported over asGraphObjectFactory
)Collection
(ported with limited functionality)GraphCollection
(ported over asGraphList
)GraphObject
(ported into existingGraphObject
)Response
(ported into existingFacebookResponse
)
- Removed the supporting classes that were used to integrate into the Facebook PHP SDK v4.0
ArrayHelpers
Auth
Connection
FacebookRequestMaker
GraphError
FacebookQueryBuilderException
- Removed
FQB::setAppCredentials()
in favor of setting theapp_id
andapp_secret
via the constructor. - Removed
FQB::setAccessToken()
in favor of setting thedefault_access_token
via the constructor. - Removed
FQB::setFacebookSession()
since FQB doesn't authenticate anything anymore. - Removed
FQB::auth()
since FQB doesn't authenticate anything anymore. - Removed
FQB::getConnection()
&FQB::setConnection()
since FQB is no longer dependant on the PHP SDK. - Added
FQB::modifiers()
andGraphEdge::modifiers()
to replace whatFQB::with()
used to do so that the nomenclature makes more sense. - Added
FQB::accessToken()
to overwrite thedefault_access_token
. - Renamed
GraphEdge::compileEdge()
andGraphNode::compileEdge()
toasUrl()
. - Renamed
FQB::getQueryUrl()
toasUrl()
. - Fixed bug that put modifiers after the fields list that caused the following error from Graph:
Syntax error "Expected end of string instead of "."." at character n
- Updated version number of Facebook PHP SDK dependency so that it would not install v4.1 when
minimum-stability
is set todev
.
- Moved latest stable to 1.1 branch.
- Fixed bug that would sometimes reset the
date_default_timezone_set()
. - Fixed bug where calling
compileEdge()
more than once on the same instance would cause unexpected results. - Broadened the scope of catching exceptions from the Facebook PHP SDK.
- Updated the field expansion syntax that was released in Graph version 2.1.
- Adjusted tagging to work according to semver.
- Added
search()
method to easily search Graph. - Expanded the
with()
method to send modifiers on GET requests. - Refactored how data from Graph is cast as collection objects to handle even more response variations.
- Added ability to alias a custom
\Facebook\FacebookRedirectLoginHelper
withFQB::setRedirectHelperAlias('MyCustomClass')
.
- Added support for the scope array in
getLoginUrl()
.
- Added
AccessToken
objects that do cool stuffs. - Better support of Graph responses.
- Even better exception handling.
- Tweaked the examples for clarity.
- Added feature to obtain an access token via redirect, canvas or Javascript.
- Added a setter to inject an existing
FacebookSession
object. - Better exception handling.
- Beefed up the examples.
- Changed SDK dependency to latest stable instead of dev-master.
- Added tasty examples.
- Added
Carbon
support for more datetime types.
- Initial release. Hello world!