2
var json = new WebClient().DownloadString("https://graph.facebook.com/me?access_token=" + app.AccessToken);
我的accesstoken在從圖形API中獲取其他東西時起作用。但是,當我試圖獲取有關當前用戶的信息我得到的ErrorMessage:facebook圖api:/ me OAuthException(c#)
{
"error": {
"type": "OAuthException",
"message": "An active access token must be used to query information about the current user."
}
}
用戶已連接到我的網頁上的應用程序。我錯過了什麼?我需要的是他的用戶ID。謝謝
如何從app.AccessToken獲取值?這個邏輯是否正確。似乎您的訪問令牌無效 – benwasd 2011-05-23 11:45:46
您是否使用了具有適當訪問權限的令牌? 「關於我的詳細信息」有單獨的訪問權限 – gprasant 2011-07-26 07:26:37