/// <summary> /// Gets the feed of the specified user or page. /// </summary> /// <param name="identifier">The ID or name of the user/page.</param> /// <param name="options">The options for the call to the API.</param> public FacebookFeedResponse GetFeed(string identifier, FacebookFeedOptions options) { return FacebookFeedResponse.ParseJson(Raw.GetFeed(identifier, options)); }
/// <summary> /// Gets a list of entries from the feed of the user or page with the specified <code>identifier</code>. /// </summary> /// <param name="identifier">The ID or name of the user/page.</param> /// <param name="options">The options for the call to the API.</param> /// <returns>The raw JSON response from the API.</returns> public SocialHttpResponse GetFeed(string identifier, FacebookFeedOptions options) { return Client.DoAuthenticatedGetRequest("/" + identifier + "/feed", options); }
/// <summary> /// Gets the feed of the specified user or page. /// </summary> /// <param name="identifier">The ID or name of the user/page.</param> /// <param name="options">The options for the call to the API.</param> /// <returns>The raw JSON response from the API.</returns> public string GetFeed(string identifier, FacebookFeedOptions options) { // Declare the query string NameValueCollection query = new NameValueCollection(); if (!String.IsNullOrWhiteSpace(Client.AccessToken)) query.Add("access_token", Client.AccessToken); if (options.Limit > 0) query.Add("limit", options.Limit + ""); if (options.Since > 0) query.Add("since", options.Since + ""); if (options.Until > 0) query.Add("until", options.Until + ""); // Make the call to the API return SocialUtils.DoHttpGetRequestAndGetBodyAsString("https://graph.facebook.com/" + identifier + "/feed", query); }