Ich arbeite auf Facebook Integration in Xcode 8 Swift 3. Ich habe den folgenden Codefacebook Integration Fehler 2500 OAuthException Xcode 8 Swift 3
let parameters = ["fields": "email, first_name, last_name, picture.type(large)"]
FBSDKGraphRequest.init(graphPath: "me", parameters: parameters).start { (connection, result, error) in
if error != nil{
print(error)
return
}
Aber ich bin immer unter Fehler verwendet.
Optional(Error Domain=com.facebook.sdk.core Code=8 "(null)" UserInfo={com.facebook.sdk:FBSDKGraphRequestErrorCategoryKey=0, com.facebook.sdk:FBSDKGraphRequestErrorHTTPStatusCodeKey=400, com.facebook.sdk:FBSDKErrorDeveloperMessageKey=An active access token must be used to query information about the current user., com.facebook.sdk:FBSDKGraphRequestErrorGraphErrorCode=2500, com.facebook.sdk:FBSDKGraphRequestErrorParsedJSONResponseKey={ body = { error = { code = 2500; "fbtrace_id" = "FmK/8QACfhe"; message = "An active access token must be used to query information about the current user."; type = OAuthException; }; }; code = 400; }}) can anyone help me out this ??
try this , FBSession.activeSession = fbSitzung. – KAR
Es ist nicht in meinem Code eingerichtet –