s1
とという名前の 2 つのサーブレットを作成しましs2
た。
s1
にリクエストを転送します
https://graph.facebook.com/oauth/authorize?client_id=41050677*****&redirect_uri=http://localhost:8080/fb10/s2& scope=publish_stream,create_event
s2
私はコードを取得し、Facebookの成功ページにリダイレクトしています:
https://graph.facebook.com/oauth/access_token?client_id=410506779*********&redirect_uri=http://www.facebook.com/connect/login_success.html& client_secret=22049dc145289c2dd7**************&code=(extract code form url)
しかし、私はエラーが発生しています:
{
"error": {
"message": "Error validating verification code.",
"type": "OAuthException",
"code": 100
}
}
これはどのように発生し、どうすれば解決できますか? responce.sendredirect();
リダイレクトに使用しました。