0
我正在使用解析在我的應用上使用Facebook登錄。無法使用帶有解析登錄的FBSDKGraphRequest
這是我的代碼:
//set permissions required
let permissionsArray = ["user_about_me"]
//log in
PFFacebookUtils.logInWithPermissions(permissionsArray, block: { (pUser, pError) -> Void in
//if user is correctly loggin
if pUser != nil && pError == nil{
//request facebook for more informations
var request = FBSDKGraphRequest(graphPath: "me", parameters: nil)
request.startWithCompletionHandler({ (connection, result, error) -> Void in
NSLog("\(error)")
})
}
})
我正確登錄與解析,但是當我'要求我的信息,一直有這樣的消息:
com.facebook.sdk:FBSDKGraphRequestErrorParsedJSONResponseKey={
body = {
error = {
code = 2500;
message = "An active access token must be used to query information about the current user.";
type = OAuthException;
};
};
code = 400;
}}