facebook / facebook-ios-sdk

Used to integrate the Facebook Platform with your iOS & tvOS apps.
https://developers.facebook.com/docs/ios
Other
7.78k stars 3.53k forks source link

Invalid OAuth access token: AccessToken.current.tokenString #2431

Open hasayakey opened 3 months ago

hasayakey commented 3 months ago

Checklist before submitting a bug report

Xcode version

15.4

Facebook iOS SDK version

17.0.2

Dependency Manager

SPM

SDK Framework

Login

Goals

AccessToken.current.tokenString should return valid oauth access token string

Expected results

AccessToken.current.tokenString should return valid oauth access token string

Actual results

https://developers.facebook.com/tools/debug/accesstoken/?access_token=$(AccessToken.current.tokenString)&version=v20.0 alert error: Invalid OAuth access token - Cannot parse access token

Steps to reproduce

No response

Code samples & details

// INSERT YOUR CODE HERE
var example = "Example code"
ricsantos commented 2 months ago

You will need to implement limited login and use the authentication token instead of access token if the user doesn't allow app tracking.