public async Task <UploadedPhoto> UploadPhotoOnWallAsync(string accessToken, string pageid = "me", string url = "", bool published = false, bool temporary = true) { var result = await _facebookClient.PostAsyncReturn <dynamic>(accessToken, pageid + "/photos", new { url, published, temporary }); if (result == null) { return(new UploadedPhoto()); } var photo = new UploadedPhoto { Id = result.id, }; return(photo); }