Subversion Repositories SmartDukaan

Rev

Rev 20180 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20180 Rev 20245
Line 1... Line 1...
1
package in.shop2020.serving.utils;
1
package in.shop2020.serving.utils;
2
 
2
 
3
import java.util.HashMap;
3
import java.util.HashMap;
4
import java.util.Map;
4
import java.util.Map;
-
 
5
import java.util.ResourceBundle;
5
 
6
 
6
import org.json.JSONObject;
7
import org.json.JSONObject;
7
 
8
 
-
 
9
import in.shop2020.serving.controllers.ProceedToPayController;
-
 
10
 
8
public class FacebookUtility {
11
public class FacebookUtility {
9
 
12
 
10
	private String FBURL = "https://graph.facebook.com/debug_token";
13
	private String FBURL = "https://graph.facebook.com/debug_token";
11
	private String FBGETDETAILS = "https://graph.facebook.com/me";
14
	private String FBGETDETAILS = "https://graph.facebook.com/me";
-
 
15
	 private static final ResourceBundle resource = ResourceBundle.getBundle(FacebookUtility.class.getName());
-
 
16
	    private static final String APPID = resource.getString("facebookAppId");
-
 
17
	    
12
	private final static String APPID = "716370691734306";
18
	//private final static String APPID = "273800242824516";
13
	private final static String APPSECRET = "a467cf8754b7b8e30315aa7269f40e85";
19
	private final static String APPSECRET = resource.getString("facebookAppSecret");
14
 
20
 
15
	public JSONObject verifyFbToken(String accessToken, String reqEmail, boolean isFbUser, String fbId) {
21
	public JSONObject verifyFbToken(String accessToken, String reqEmail, boolean isFbUser, String fbId) {
16
		boolean result = false;
22
		boolean result = false;
17
		Utils util = new Utils();
23
		Utils util = new Utils();
18
		JSONObject resp = new JSONObject();
24
		JSONObject resp = new JSONObject();