Skip to content

Conversation

@alexcastano
Copy link
Contributor

This function gives the possibility to get images bigger than 200x200 which was my original problem.

@mweibel
Copy link
Owner

mweibel commented Apr 18, 2018

@alexcastano thanks for the PR. 👍

I'd prefer if you refactor the picture function to allow for more parameters. Also in custom_picture there's the type missing it seems.

@mweibel
Copy link
Owner

mweibel commented Jul 3, 2018

ping?

@alexcastano
Copy link
Contributor Author

Hi @mweibel

Well, if you allow for more parameters you break the compatibility with older versions, I thought it was not a good idea. How should be the arguments of this function? Maybe type could be a tuple:

 iex> Facebook.picture("<Some Id>", "small", "<Access Token>")
 iex> Facebook.picture("<Some Id>", {600, 600}, "<Access Token>")

@mweibel
Copy link
Owner

mweibel commented Jul 5, 2018

You could add a function with the same name with different amount of arguments though, no?
Then call one from the other if possible.

@alexcastano
Copy link
Contributor Author

I don't see to "type" function calls to dimension one, because facebook can change its criteria to match type => dimension at any time.

I'll change the name to the function ASAP :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants