}
							callback();
						}
					});
					
					$.ajax({
						url: window.location.protocol + "//" + "api.perk.com/oauth/token",
						type: 'POST',
						crossDomain: true,
						cache: false,
						data: {
							grant_type: 'facebook',
							device_type: 'web_browser',
							client_id: "11111",
							client_secret: "c437a24bf277dfea375f",
							fb_user_id: response.fb_user_id,
							access_token: response.access_token
						}
					}).done(function( data, textStatus, jqXHR ) {
						console.log("Do