我正在尝试使用MVC C#中的以下代码从facebook获取新闻。
public ActionResult Index()
{
JsonObject Data = new JsonObject();
var fb = new FacebookClient("my_accesstoken");
dynamic parameters = new ExpandoObject();
parameters.q = "SELECT created_time, updated_time, message, attachment, likes, share_count FROM stream WHERE filter_key in ( SELECT filter_key FROM stream_filter WHERE uid = me() ) AND created_time <= now() AND is_hidden=0";
dynamic result = fb.Get("fql", parameters);
retuen View();
}
执行此代码时会触发OAuthException并显示以下消息
An exception of type 'Facebook.FacebookOAuthException' occurred in
Facebook.dll but was not handled in user code
Additional information: (OAuthException - #606) (#606) Queries for
these filter_keys: "nf,fl_1308485*******,fl_101358078*********,app_29151*******,app_2305********,
app_23098*******,fl_11076123908*******,
fl_1013580******,fl_110761242420941,fl_13084853*******,pp,app_239295*****,app_2347*******,app_23618*****"
require a non-zero viewer that has granted read_stream permission
任何帮助都是Apprieciated。