/// <summary> /// Posts a new photo to the object 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 PostPhoto(FacebookPostUserPhotoOptions 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 + "/photos", options)); }
/// <summary> /// Posts a new photo to the feed of the user with the specified <code>identifier</code>. /// </summary> /// <param name="identifier">The ID of the user.</param> /// <param name="options">The options for the call to the API.</param> public SocialHttpResponse PostPhoto(string identifier, FacebookPostUserPhotoOptions options) { return(Client.DoAuthenticatedPostRequest("/" + identifier + "/photos", options)); }
/// <summary> /// Posts a new photo to the object 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="FacebookCreatePhotoResponse"/> representing the response.</returns> public FacebookCreatePhotoResponse PostPhoto(FacebookPostUserPhotoOptions options) { return(FacebookCreatePhotoResponse.ParseResponse(Raw.PostPhoto(options))); }
/// <summary> /// Posts a new photo to the feed of the user with the specified <code>identifier</code>. /// </summary> /// <param name="identifier">The ID of the user.</param> /// <param name="options">The options for the call to the API.</param> public FacebookPostPhotoResponse PostPhoto(string identifier, FacebookPostUserPhotoOptions options) { return(FacebookPostPhotoResponse.ParseResponse(Raw.PostPhoto(identifier, options))); }