1
我在我的網站上使用Facebook C#SDK,並試圖訪問Facebook所做的cookie,當用戶選擇使用Facebook作爲登錄時,但我我收到以下錯誤:試圖從代碼隱藏獲取Facebook Cookie,但越來越(OAuthException)
(OAuthException) An active access token must be used to query information about the current user.
這裏是我使用的代碼:
var client = new FacebookClient([App ID], [App Secret]);
dynamic me = client.Get("me");
string firstName = me.first_name;
Response.Write(firstName);
我到底做錯了什麼?
在此先感謝