From 03b9bb980287d8f5578d1caec7a19e56f448e40f Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 21 Sep 2016 22:05:11 +0300 Subject: move facebook credentials to config --- juick-www/src/main/java/com/juick/www/FacebookLogin.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'juick-www/src/main/java/com/juick/www/FacebookLogin.java') diff --git a/juick-www/src/main/java/com/juick/www/FacebookLogin.java b/juick-www/src/main/java/com/juick/www/FacebookLogin.java index a448ea27..5cecf1ef 100644 --- a/juick-www/src/main/java/com/juick/www/FacebookLogin.java +++ b/juick-www/src/main/java/com/juick/www/FacebookLogin.java @@ -40,9 +40,14 @@ public class FacebookLogin { private static final Logger logger = Logger.getLogger(FacebookLogin.class.getName()); - private static final String FACEBOOK_APPID = "130568668304"; - private static final String FACEBOOK_SECRET = "95813bfb6ab8f473410c50d4f971649e"; - private static final String FACEBOOK_REDIRECT = "http://juick.com/_fblogin"; + private final String FACEBOOK_APPID; + private final String FACEBOOK_SECRET; + private final String FACEBOOK_REDIRECT = "http://juick.com/_fblogin"; + + public FacebookLogin(String ApplicationID, String secret) { + this.FACEBOOK_APPID = ApplicationID; + this.FACEBOOK_SECRET = secret; + } protected void doGet(JdbcTemplate sql, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String fbstate; -- cgit v1.2.3