/// <summary>
 /// Gets a list of photos of the album, user or page 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 GetPhotos(FacebookGetPhotosOptions 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.DoHttpGetRequest("/" + options.Identifier + "/photos", options));
 }
Example #2
0
 /// <summary>
 /// Gets a list of photos of the album, user or page 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="FacebookGetPhotosResponse"/> representing the response.</returns>
 public FacebookGetPhotosResponse GetPhotos(FacebookGetPhotosOptions options)
 {
     return(FacebookGetPhotosResponse.ParseResponse(Raw.GetPhotos(options)));
 }