我试图检索这样的特定 id 的共享数量,但不工作返回 null:
private JsonArray SharesData(string id, string token)
{
JsonObject da;
var url = string.Format("https://graph.facebook.com/{0}/shares?access_token={1}&limit=100000", id, token);
da = (JsonObject)fb.Get(url);
return (JsonArray)da["data"];
}
这适用于喜欢和评论:
public JsonArray LikesData(string id, string token)
{
JsonObject da;
var url = string.Format("https://graph.facebook.com/{0}/likes?access_token={1}&limit=100000", id, token);
da = (JsonObject)fb.Get(url);
return (JsonArray)da["data"];
}
public JsonArray CommentsData(string id, string token)
{
JsonObject dat = new JsonObject();
var url = string.Format("https://graph.facebook.com/{0}/comments?access_token={1}&limit=100000", id, token);
dat = (JsonObject)fb.Get(url);
return (JsonArray)dat["data"];
}
谢谢,