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");
}