2013-01-23 2 views
0

내 애플리케이션에 로그인 할 때이 오류가 발생했습니다. 나는 그 문제 만 가지고있는 것처럼 보입니다. 앱에 액세스 할 수있는 다른 사용자는 나를 제외하고 앱에 액세스 할 수있었습니다.치명적 오류 : 알려지지 않은 OAuthException : 액세스 토큰 유효성 검사 오류 : 사용자가 로그 아웃했거나 시스템 오류로 인한 것일 수 있습니다.

Fatal error: Uncaught OAuthException: Error validating access token: This may be because the user logged out or may be due to a system error. thrown in /home/dexp/public_html/mascaraza/fb-php-sdk/base_facebook.php on line 1254

이 문제는 청색으로 나타났습니다. 내 앱의 이전 백업으로 되 돌렸을 때도 문제는 여전히 남아 있습니다. 난 페이스 북에서 잘 작동하는 다른 게임을 시도하고 새로운 애플 리케이션을 만들려고 노력하고 그것을 통해 내 물건을 마이 그 레이션 여전히 동일하게 유지됩니다. 나는 또한 내 계정에서 응용 프로그램을 제거하고 애플 리케이션을 재 인증하려고했지만 아무 소용이 없다.

이 오류를 해결하려면 무엇을해야합니까?

답변

2

우리가 (사용자가 응용 프로그램과 연결되지 않은 경우) 토큰이 만료되지 얻을,이 권한은 현재 사용되지 않습니다 offline_access 권한을 사용할 수 있기 전에 How-To: Handle expired access tokens 개발자 블로그 게시물

Access tokens for users can become invalid due to various reasons. In most cases, they can expire if it’s past the time specified by the expires field (by default access token have a 2 hour lifetime). What many developers do not realize is that an access token can also expire if a user changes her password, logs out or if she de-authorizes the app via the App Dashboard. It is very important that your apps handle such situations. If your access token expires, you need to reacquire a valid access token.

에 기록 된 것처럼, 어떻게 볼 Deprecation of Offline Access Permission 참조 만료 시간이 더 긴 access_token을 얻을 수 있습니다.

업데이트 :
페이스 북 PHP-SDK have added simple way of extending access_token 년 8 월 2012 년

here에서 추출 (자세한 내용은 How to extend access token validity since offline_access deprecation 참조).

관련 문제