So I’m working on using the Facebook API and I’m wondering if there’s an easy way to access the URI fragment from a URL like this:
http://localhost/MyController/MyAction#access_token=LONGTOKENSTRINGHERE&expires_in=6355
I need the values after the “#”. The only options available underneath Request return every before the “#”. I would use client-side JS, but I need the Server to get the values for the Access Token as well as the Expires time. Any suggestions?
Anchors (designated with
#) do not get sent to the server at all… they are resolved locally (i.e. client-side) by the browser… javascript can access this viawindow.location.hash.IF you need these server-side you either find a way to tell facebook to use the query string instead of an anchor OR you use some javascript to access that information and send it along with the request…