我开发了解决方案以获取 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");
}
答案 0 :(得分:0)
从应用设置中停用sandbox mode
。