Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
Graph API default to v2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
benorama committed May 4, 2015
1 parent 2d1ce01 commit b7e9e95
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class FacebookJSTagLib {
* @attr locale (Default to server locale)
* @attr status (Default to false)
* @attr xfbml (Default to false)
* @attr version (Default to v2.2 or apiVersion config settings)
* @attr version (Default to v2.3 or apiVersion config settings)
*/
def initJS = { attrs, body ->
if (!attrs.locale) attrs.locale = RequestContextUtils.getLocale(request)
Expand All @@ -52,7 +52,7 @@ class FacebookJSTagLib {
params: [locale: attrs.locale.toString()]
)
}
if (!attrs.containsKey('version')) attrs.version = config.apiVersion ?: 'v2.2'
if (!attrs.containsKey('version')) attrs.version = config.apiVersion ?: 'v2.3'
Map model = [body:body()]
attrs.each { key, value ->
model[key] = value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import org.springframework.context.ApplicationContext
class FacebookGraphClient extends DefaultFacebookGraphClient {

static final int DEFAULT_READ_TIMEOUT_IN_MS = 180000
static final String DEFAULT_API_VERSION = 'v2.2'
static final String DEFAULT_API_VERSION = 'v2.3'

/**
*
Expand Down Expand Up @@ -259,7 +259,10 @@ class FacebookGraphClient extends DefaultFacebookGraphClient {
version = Version.VERSION_2_1
break
case 'v2.2':
version = Version.Version_2_2
version = Version.VERSION_2_2
break
case 'v2.3':
version = Version.VERSION_2_3
break
}
version
Expand Down

0 comments on commit b7e9e95

Please sign in to comment.