This repository was archived by the owner on Dec 13, 2018. It is now read-only.
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
Description
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";