Skip to content

Commit

Permalink
Bump Graph API version to v17.0
Browse files Browse the repository at this point in the history
Summary: Bump Graph API version to v17.0

Reviewed By: ryantobinmeta

Differential Revision: D55030141

fbshipit-source-id: 4c5d1242a407f3156781c2187494012a711d1226
  • Loading branch information
jjiang10 authored and facebook-github-bot committed Mar 18, 2024
1 parent de2cfe5 commit 98c573c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions FBAEMKit/FBAEMKit/AEMNetworker.swift
Expand Up @@ -20,10 +20,10 @@ final class AEMNetworker: NSObject, AEMNetworking, URLSessionDataDelegate {
private enum Values {
static let newline = "\r\n"
static let versionString = "17.0.0"
static let defaultGraphAPIVersion = "v16.0"
static let defaultGraphAPIVersion = "v17.0"
static let SDK = "ios"
static let userAgentBase = "FBiOSAEM"
static let graphAPIEndpoint = "https://graph.facebook.com/v16.0/"
static let graphAPIEndpoint = "https://graph.facebook.com/v17.0/"
static let graphAPIContentType = "application/json"
static let errorDomain = "com.facebook.aemkit"
static let agent = "\(Values.userAgentBase).\(Values.versionString)"
Expand Down
2 changes: 1 addition & 1 deletion FBSDKCoreKit/FBSDKCoreKit/include/FBSDKCoreKitVersions.h
Expand Up @@ -7,4 +7,4 @@
*/

#define FBSDK_VERSION_STRING @"17.0.0"
#define FBSDK_DEFAULT_GRAPH_API_VERSION @"v16.0"
#define FBSDK_DEFAULT_GRAPH_API_VERSION @"v17.0"
2 changes: 1 addition & 1 deletion FBSDKCoreKit/FBSDKCoreKitTests/GraphRequestTests.swift
Expand Up @@ -15,7 +15,7 @@ final class GraphRequestTests: XCTestCase {

let path = "me"
let parameters = ["fields": ""]
let version = "v16.0"
let version = "v17.0"
let prefix = "graph."
let settings = TestSettings()
var factory = TestGraphRequestConnectionFactory()
Expand Down
Expand Up @@ -28,7 +28,7 @@ final class GraphRequestFactoryTests: XCTestCase {
expectedGraphPath: "me",
expectedParameters: ["some": "thing"],
expectedTokenString: "foo",
expectedVersion: "v16.0",
expectedVersion: FBSDK_DEFAULT_GRAPH_API_VERSION,
expectedMethod: .get
)
}
Expand All @@ -48,7 +48,7 @@ final class GraphRequestFactoryTests: XCTestCase {
expectedGraphPath: "me",
expectedParameters: ["some": "thing"],
expectedTokenString: nil,
expectedVersion: "v16.0",
expectedVersion: FBSDK_DEFAULT_GRAPH_API_VERSION,
expectedMethod: .post,
expectedUseAlternativeValue: false
)
Expand All @@ -72,7 +72,7 @@ final class GraphRequestFactoryTests: XCTestCase {
expectedGraphPath: "me",
expectedParameters: ["some": "thing"],
expectedTokenString: "test_token_string",
expectedVersion: "v16.0",
expectedVersion: FBSDK_DEFAULT_GRAPH_API_VERSION,
expectedMethod: .post,
expectedForAppEvents: true,
expectedUseAlternativeValue: false
Expand All @@ -96,7 +96,7 @@ final class GraphRequestFactoryTests: XCTestCase {
expectedGraphPath: "me",
expectedParameters: ["some": "thing"],
expectedTokenString: "test_token_string",
expectedVersion: "v16.0",
expectedVersion: FBSDK_DEFAULT_GRAPH_API_VERSION,
expectedMethod: .post,
expectedUseAlternativeValue: false
)
Expand Down Expand Up @@ -141,7 +141,7 @@ final class GraphRequestFactoryTests: XCTestCase {
expectedGraphPath: "me",
expectedParameters: ["some": "thing"],
expectedTokenString: nil,
expectedVersion: "v16.0",
expectedVersion: FBSDK_DEFAULT_GRAPH_API_VERSION,
expectedMethod: .get,
expectedUseAlternativeValue: false
)
Expand All @@ -160,7 +160,7 @@ final class GraphRequestFactoryTests: XCTestCase {
expectedGraphPath: "me",
expectedParameters: ["fields": ""],
expectedTokenString: nil,
expectedVersion: "v16.0",
expectedVersion: FBSDK_DEFAULT_GRAPH_API_VERSION,
expectedMethod: .get,
expectedUseAlternativeValue: false
)
Expand All @@ -181,7 +181,7 @@ final class GraphRequestFactoryTests: XCTestCase {
expectedGraphPath: "me",
expectedParameters: ["some": "thing"],
expectedTokenString: nil,
expectedVersion: "v16.0",
expectedVersion: FBSDK_DEFAULT_GRAPH_API_VERSION,
expectedMethod: .get,
expectedUseAlternativeValue: false
)
Expand All @@ -201,7 +201,7 @@ final class GraphRequestFactoryTests: XCTestCase {
expectedGraphPath: "me",
expectedParameters: ["some": "thing"],
expectedTokenString: nil,
expectedVersion: "v16.0",
expectedVersion: FBSDK_DEFAULT_GRAPH_API_VERSION,
expectedMethod: .post,
expectedUseAlternativeValue: true
)
Expand All @@ -224,7 +224,7 @@ final class GraphRequestFactoryTests: XCTestCase {
expectedGraphPath: "me",
expectedParameters: ["some": "thing"],
expectedTokenString: "test_token_string",
expectedVersion: "v16.0",
expectedVersion: FBSDK_DEFAULT_GRAPH_API_VERSION,
expectedMethod: .post,
expectedForAppEvents: true,
expectedUseAlternativeValue: true
Expand All @@ -247,7 +247,7 @@ final class GraphRequestFactoryTests: XCTestCase {
expectedGraphPath: "me",
expectedParameters: ["some": "thing"],
expectedTokenString: "test_token_string",
expectedVersion: "v16.0",
expectedVersion: FBSDK_DEFAULT_GRAPH_API_VERSION,
expectedMethod: .post,
expectedUseAlternativeValue: true
)
Expand Down Expand Up @@ -290,7 +290,7 @@ final class GraphRequestFactoryTests: XCTestCase {
expectedGraphPath: "me",
expectedParameters: ["some": "thing"],
expectedTokenString: nil,
expectedVersion: "v16.0",
expectedVersion: FBSDK_DEFAULT_GRAPH_API_VERSION,
expectedMethod: .get,
expectedUseAlternativeValue: true
)
Expand All @@ -308,7 +308,7 @@ final class GraphRequestFactoryTests: XCTestCase {
expectedGraphPath: "me",
expectedParameters: ["fields": ""],
expectedTokenString: nil,
expectedVersion: "v16.0",
expectedVersion: FBSDK_DEFAULT_GRAPH_API_VERSION,
expectedMethod: .get,
expectedUseAlternativeValue: true
)
Expand All @@ -328,7 +328,7 @@ final class GraphRequestFactoryTests: XCTestCase {
expectedGraphPath: "me",
expectedParameters: ["some": "thing"],
expectedTokenString: nil,
expectedVersion: "v16.0",
expectedVersion: FBSDK_DEFAULT_GRAPH_API_VERSION,
expectedMethod: .get,
expectedUseAlternativeValue: true
)
Expand Down

0 comments on commit 98c573c

Please sign in to comment.