facebook / facebook-ios-sdk

Used to integrate the Facebook Platform with your iOS & tvOS apps.

Home Page:https://developers.facebook.com/docs/ios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GraphRequest `/me` fails on v17+

nvprokofiev opened this issue · comments

Checklist before submitting a bug report

Xcode version

15.4

Facebook iOS SDK version

17.0.2

Dependency Manager

SPM

SDK Framework

Core

Goals

We want to update to SDK v17.0.2 to align with the Privacy Manifest requirements but a graph request we are making fails with the error Could not make graph API request Code=-1

GraphRequest(graphPath: "/me",
             parameters: ["fields": "id, name"],
             tokenString: token?.stringValue,
             version: SharedConstants.FB_GRAPH_API_VERSION,
             httpMethod: .get)
<FBSDKGraphRequestConnection: 0x301db73a0, 1 request(s): (
<FBSDKGraphRequest: 0x301534460, graphPath: /me, HTTPMethod: GET, parameters: {
    "access_token" = XXX;
    fields = "id, name";
    format = json;
    "include_headers" = false;
    sdk = ios;
}>
)>

There are no code changes, only updated the SDK version, everything is fine on v16.3.1.

The same request succeeds when testing on the dev portal.

Expected results

The request should succeed as on v16.3.1

Actual results

The request fails with Could not make graph API request Code=-1

Steps to reproduce

No response

Code samples & details