How to "Spawn" a Wall album in a new page
===

I am trying to post pictures to customers' pages. There may or may not be a "Wall Photos" album in the page. 

In scenarios where there is not a pre-existing "Wall Photos" album how would I create / request the creation of a wall photo album?

I am using Koala and I can create albums, but I cannot create albums with type = "wall". 

here is the code I am using to create / find albums: 


    def get_photo_album(facebook_id)

      # Looking for a pre-existing WALL PHOTO album
      p "============= Getting Wall Photos album for fbid #{facebook_id}"
      album = get_album facebook_id, 'Wall Photos'

      unless album
        p ' ======= Album FAIL 1 - getting Photos '
        album = get_album facebook_id, FALLBACK_ALBUM_NAME
        unless album
          p ' ========== Album FAIL 2 - MAKING Phtoos '
          @graph_client.put_object facebook_id, 'albums', 'name' => FALLBACK_ALBUM_NAME

          sleep 3 # wait 3 seconds to let facebook make and fiddle with new album

          album = get_album facebook_id, FALLBACK_ALBUM_NAME
          unless album
            p ' ##################### UTTER ALBUM FAIL '
            raise "Cannot use alternative photo album"
          end
        end
      end

      if album && album.length > 0
        album
      else
        # ensure that there is an album.
        raise "Cannot use alternative photo album"
      end
    end

    def get_album(facebook_id, name)
      
      params = {'name' => name};

      albums = @graph_client.get_connections(facebook_id, "albums", params)

      p "Found #{albums ? albums.length : 0} albums named #{name} for fbid #{facebook_id}"
      albums = albums.reject do |a|
        a['name'] != name
      end
      p "Found #{albums ? albums.length : 0} albums named #{name} for fbid #{facebook_id} AFTER filtering for name"
      pp albums

      albums.length >0 ? albums[0] : nil
    end

  end

And here is the Koala code I am using to put the picture itself


    def put_image(facebook_id, params)
      params = sanitize_params(params)
      params = encode_necessary_params(params)
      
      
      picture = URI.decode(params['picture'])
      

      photo_album = get_photo_album(facebook_id)
      photo_album_id = photo_album['id']

      params = params.reject do |key, value|
        key == 'metadata_type'
      end

      p ' -------------------------------------- PUT PICTURE ----------------------------'
      p "fbid:#{facebook_id}, message: #{params['message']}, picture: #{picture}"
      p ' -------------------------------------- PUT PICTURE ----------------------------'

      out = @graph_client.put_picture picture, {:message => params['message']}, photo_album_id
      Statsd.increment("posts")
      out
    rescue Exception => ex
      
      
      handle_error(ex)

    end

I have tried several variations including:

 - putting 'type' => 'wall' in the @graph_client.put_object parameters: doesn't post the image at all
 - creating an album named 'Wall Photos' - the album appears, but the posts don't look like wall posts.

To be clear: **The ultimate goal is for all posts to this album to have "big" previews - full column width, not tiled 1" previews. **

Any help would be appreciated. 