1
我正在嘗試使用WCF服務爲Facebook網址創建HttpWebRequest。它給出了WCF錯誤請求錯誤:Facebook訪問令牌爲用戶搜索提供了錯誤代碼190和錯誤子代碼463
https://graph.facebook.com/search?type=user&access_token=" + Convert.ToString(ConfigurationManager.AppSettings["Facebook_Access_Token1"]) + "&q=" + searchString + "&offset=0&limit=1000&fields=name,link,gender,languages,location,address,education,work,picture
完整的URL以供參考:
https://graph.facebook.com/search?type=user&access_token=<access_token>&q=f%3DPulkit&offset=0&limit=1000&fields=name,link,gender,languages,location,address,education,work,picture
如果我直接嘗試通過瀏覽器訪問這個URL它提供了以下錯誤信息:
{
"error": {
"message": "Error validating access token: Session has expired on Sunday, 22-Feb-15 23:22:13 PST. The current time is Monday, 02-Mar-15 04:47:31 PST.",
"type": "OAuthException",
"code": 190,
"error_subcode": 463
}
}
此代碼早期作爲Java Rest服務運行良好。但現在它不能這樣工作。任何指針都會有幫助。謝謝。