Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Facebook Api version exists/duplicated in code base #1786

Closed
ry8806 opened this issue Jun 20, 2018 · 2 comments
Closed

Facebook Api version exists/duplicated in code base #1786

ry8806 opened this issue Jun 20, 2018 · 2 comments
Labels

Comments

@ry8806
Copy link

ry8806 commented Jun 20, 2018

just looking at the commit to bump the facebook api version to 2.12 = #1306
and this commit: cc8acdf
and there are multiple places where the version number exists, to me this feels a little dangerous/wasteful - having it defined in more than one place. This would also make sure the upgrade process is even easier 😺

I could improve it, so that it only references the version in one place (in FacebookDefaults) and we could reference the version through the rest of the project??

Just wondering if this is something that may be considered? I'm happy to knock out the very small amount of work pretty quickly

I have originally thought about doing something like:

public static readonly string FacebookVersion = "v2.12";
public static readonly string TokenEndpoint = $"https://graph.facebook.com/{FacebookVersion}/oauth/access_token";
@Tratcher
Copy link
Member

That's a bit overstated, half of these are tests.

Feel free to send a PR, and to check on the other providers while you're at it.

@ry8806 ry8806 changed the title Facebook Api version exists/duplicated all over code base Facebook Api version exists/duplicated in code base Jun 20, 2018
@Eilon Eilon added the wontfix label Jun 28, 2018
@Eilon
Copy link
Contributor

Eilon commented Jun 28, 2018

We wrote the code this way deliberately, so we are not planning to change this.

@Eilon Eilon closed this as completed Jun 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants