Cannot authenticate via a web browser in ios simulator


#1

getting this error cannot authenticate via a web browser in ios simulator

$cordovaOauth.instagram(“XXX”,scopeArray).then(function(result) {
console.log(result.access_token);

		        }, function(error) {
		            // error
		        	console.log(error);
		        	 
		        });