I\'m trying to parse for the access_token from Foursquare where the URL is like this:
https://mywebsite.com/4sqredirect/#access_token=1234567890XXXXX
I\'ve t
From angular location service $location.hash()
method return #after-hash
so if your url is look like
https://mywebsite.com/4sqredirect/#access_token=1234567890XXXXX
then
$location.hash()
return access_token=1234567890XXXXX
you need to split it split('=')[1]
see this plunker when you click 4Square
then $location.url()
return
/4sqredirect/#access_token=123456
$location.hash().split('=')[1]
return 123456