/// <summary> /// A method which executes a FQL query to get the album Id to which the photo will be uploaded. /// </summary> /// <param name="accessToken">the OAuth access token</param> /// <param name="albumId">Id of the album's owner (current user)</param> private void GetAlbum(string accessToken, string userId) { FacebookApp facebookClient = new FacebookApp(accessToken); facebookClient.QueryAsync("SELECT object_id, name FROM album WHERE owner=\"" + userId + "\"", GetAlbumAsyncCallback); }