0

新しいアプリケーションを作成しましたが、facebook から access_token を取得しようとすると問題が発生します。

認証コードを取得し、auth_token の次の要求を生成できます: https://graph.facebook.com/oauth/access_token?client_id=APP_ID&redirect_uri=http://apps.facebook.com/ctfbesmokefree/&client_secret=APP_SECRET&code =GENERATED_CODE

このページの手順に従いました: http://forum.developers.facebook.net/viewtopic.php?id=70773

ただし、すべての手順に従ってアプリの設定を編集した後でも、auth_token を生成しようとすると、次のエラー メッセージが表示されます。

{
   "error": {
      "message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
      "type": "OAuthException"
   }
}

他に変更が必要な設定はありますか、それとも不足しているものはありますか?

4

1 に答える 1

0

次のようなパターンを作成します: https ://graph.facebook.com/oauth/access_token?client_id =&redirect_uri =&client_secret =&code = これはあなたの場合に適していて、リダイレクトURLの後にスラッシュを1つ入れます。

例:

https://graph.facebook.com/oauth/access_token?client_id=402049XXX​​XX&client_secret=b943bfce7330fe4XXXXXXXX&redirect_uri=http://www.prvnvrma.blogspot.in/&code=XXXXXXX ;

于 2013-02-06T05:52:57.843 に答える