/// <summary> /// Publishes a new post to the feed matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for the call to the API.</param> /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns> public IHttpResponse CreatePost(FacebookCreatePostOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } if (String.IsNullOrWhiteSpace(options.Identifier)) { throw new PropertyNotSetException(nameof(options.Identifier), "A Facebook identifier (ID or alias) must be specified."); } return(Client.DoHttpPostRequest("/" + options.Identifier + "/feed", options)); }
/// <summary> /// Publishes a new post to the feed matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for the call to the API.</param> /// <returns>An instance of <see cref="FacebookCreatePostResponse"/> representing the response.</returns> public FacebookCreatePostResponse CreatePost(FacebookCreatePostOptions options) { return(FacebookCreatePostResponse.ParseResponse(Raw.CreatePost(options))); }