【发布时间】:2013-02-20 23:37:52
【问题描述】:
我对 Facebook c# sdk 有疑问。
当我尝试连接 accesstoken 时,它会给出一条错误消息: (OAuthException) 访问令牌签名无效
我的网址是:
https://www.facebook.com/dialog/oauth?client_id=" + _appid + "&redirect_uri=http://localhost:51656/Register.aspx?scope=email,publish_stream,offline_access,create_event,user_about_me,user_activities,user_birthday,user_education_history,user_events,user_groups,user_interests,user_likes ,user_location,user_notes,user_religion_politics,user_relationship_details,user_photos,user_status
我的代码是:
string _code ="";
string _appid = "184604574912126";
string _accesstoken;
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["code"] != null)
{
_code = Request.QueryString["code"].ToString();
}
if (_code != "")
{
_accesstoken = _appid + "|" + _code;
vFB = new FacebookClient(_accesstoken);
}
try
{
JsonObject vmyobject = (JsonObject)vFB.Get("/me");
this line giving exaption.
}
我错过了什么?
【问题讨论】:
标签: facebook-c#-sdk