Ejemplo n.º 1
0
 /// <summary>
 /// Gets comments by Facebook's Page ID.
 /// </summary>
 /// <param name="fbPageId"></param>
 /// <param name="max"></param>
 /// <returns></returns>
 public FacebookPageCommentInfo GetCommentsByPageId(string fbPageId, int max = 10)
 {
     return(ApiWebRequestHelper.GetJsonRequest <FacebookPageCommentInfo>($"https://graph.facebook.com/comments?id={fbPageId}&access_token={_accessToken}&limit={max}"));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets page info that has been shared to Facebook.
 /// </summary>
 /// <param name="pageUrl"></param>
 /// <returns></returns>
 public FacebookPageInfo GetPage(string pageUrl)
 {
     return(ApiWebRequestHelper.GetJsonRequest <FacebookPageInfo>($"https://graph.facebook.com/{pageUrl}?access_token={_accessToken}"));
 }