Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8540201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:32:37+00:00 2026-06-11T11:32:37+00:00

I have a single page javascript application, and I’m wondering if I can authenticate

  • 0

I have a single page javascript application, and I’m wondering if I can authenticate the user on Instagram without refreshing the page. I’d like to try to do something similar to the Facebook connect using javascript, where a Facebook dialog opens in a popup then calls a callback script after.

Here’s what I’m thinking it would do…

  1. On click, opens a dialog (popup) window where the user logs in to Instagram and the app is granted permission.
  2. In the popup window, the user is redirected back to my website where my website curls to Instagram to get the access_token, then sets the access token in the user’s session or as a cookie.
  3. Somehow…the main application needs to recognize when the access token has been set. This is the point I’m really not sure about. Would I use a timer to keep making calls back to the server to check for it? Does anyone have any better ideas for detecting it? Would it work better to set it in a cookie?

I thought I’d ask here first before I start coding incase anyone had any ideas as to if this would/wouldn’t work, or other suggestions! Maybe this already exists and I’m missing something?

Thanks in advance 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T11:32:39+00:00Added an answer on June 11, 2026 at 11:32 am

    It ended up being super easy to do this with a popup using the comments from tdun and Jan. Thanks guys! Used the Instgram class from 9lessons, and used window.opener.processAuthData(authData) to call back to the original window. And I did have to do a refresh, but it was in the popup window, not in the main app window, which was what I was going for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a single-page JavaScript application, held within an ASP.NET MVC 3 website. In
I have an html page with a single-line javascript comment as follows: // {key1:value1},
Basically I have a single page site that scrolls when the user clicks on
I have an application where every single page uses a set of data that
I have a nested user control which appears on every single page. It contains
I have a single page application written in MVC4 that uses pjax() to push
I have a single page web application using jquery and a set of embedded
I currently have a LARGE single-page application, with each html view being built purely
I am coding a single page javascript application that displays images, a la pinspire.
I've been looking to use Google Analytics _gaq.push() function on a single-page JavaScript application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.