0

Facebookユーザーの詳細を取得するソリューションを開発しました。コードは私のアカウントでうまく機能しましたが、別のアカウントでテストしようとすると、詳細がわかりません。ユーザーがタブをクリックするとこのソリューションに移動するため、このソリューションをFacebookタブと結び付けました。

protected void Page_Load(object sender, EventArgs e)
{

    string host = System.Configuration.ConfigurationManager.AppSettings["host"];
    string facebookClientId =
      System.Configuration.ConfigurationManager.AppSettings["FacebookClientId"];
    string RedirectURL = "http://x.y.com";
    if (Request.QueryString["redirectURL"] != null)
    {
        RedirectURL = Request.QueryString["redirectURL"].ToString();
        Session["RedirectURL"] = RedirectURL;
    }
    Response.Redirect(@"https://graph.facebook.com/oauth/authorize?client_id=" +
      facebookClientId + "&redirect_uri=http://" + host +
      @"/FBcallback.aspx&scope=publish_stream,offline_access,publish_actions");

}
4

1 に答える 1

0

sandbox modeアプリの設定から無効にします。

于 2013-09-03T11:35:15.607 に答える