I am using the instagram api and I registered and got passed the authorization. It returns an access token in the url hash, since I am using "Client-Side (Implicit) Authentication."
http://your-redirect-uri#access_token=20001105.f59def8.a85e3ca34d8b406f9c0ec54a44d0bcf5
I save the access token hash as a variable and add it to the ajax json url like so:
$(document).ready(function() {
var hash = window.location.hash.substring(1);
$(function() {
$.ajax({
type: "GET",
dataType: "jsonp",
cache: false,
url: "https://api.instagram.com/v1/users/self/feed?" + hash,
I want to save the hash to a variable I can access later on a different page, so that it's not in the url bar.
How can this be done with using PHP or javascript and jQuery?