是否可以通过我的asp.net中的电子邮件ID获取Facebook人员详细信息? [英] Is it any way to get facebook person details by use of email id in my asp.net?

查看:72
本文介绍了是否可以通过我的asp.net中的电子邮件ID获取Facebook人员详细信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望通过使用我的asp.net页面中的电子邮件ID获取Facebook人员详细信息...

解决方案

Facebook发布了 2010年的Facebook C#SDK alpha

您可以在开发人员本网站上找到详细信息。 />


请找到连接facebook和C#的代码。



 使用系统; 
使用 System.Collections.Generic;
使用 System.Web;
使用 System.Web.UI;
使用 System.Web.UI.WebControls;

public partial class facebook_login:System.Web.UI.Page
{
protected void Page_Load( object sender,EventArgs e)
{
string host = Request .ServerVariables [ HTTP_HOST];
string facebookClientId =
System.Configuration.ConfigurationManager.AppSettings [ FacebookClientId];
string RedirectURL = ;
if (Request.QueryString [ redirectURL ]!= null
{
RedirectURL = Request.QueryString [ redirectURL]。ToString();
会话[ 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 );
}
}





您可以在CodeProject文章中找到有关此内容的详细说明。

请查找 LINK


i wanna get facebook person details by use of there email id in my asp.net page...

解决方案

Facebook released the Facebook C# SDK alpha in 2010.
You can find the details in Developers this site.

Please find the code for connecting facebook and C#.

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class facebook_login : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string host = Request.ServerVariables["HTTP_HOST"];
        string facebookClientId = 
          System.Configuration.ConfigurationManager.AppSettings["FacebookClientId"];
        string RedirectURL = "";
        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");
    }
}



You can find the detailed explanation about this in a CodeProject Article.
Please find the LINK


这篇关于是否可以通过我的asp.net中的电子邮件ID获取Facebook人员详细信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆