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 1068041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:14:11+00:00 2026-05-16T20:14:11+00:00

Our website lets users create small widgets that can be embedded on other third

  • 0

Our website lets users create small widgets that can be embedded on other third party sites. When an end-user interacts with our widget on some site, we want to post a twitter update on his/her behalf and then display a message to the user on the widget itself(provided the twitter update was successful). We’ve been using the twitter api with basic auth to do this(we asked the user for their username and password within the widget itself). Now that twitter has moved to OAuth exclusively, we have created a twitter app to use the OAuth API.

Now, one way to go about this is to register our twitter app as a client app(instead of a browser app). For this, the possible flow is that we ask the user to goto a url(link click and opens in a new window) and then authenticate on twitter,give permission to our app and come back to the widget and enter the pin that twitter provides. this is cumbersome.

The other way is to register the app as a web app. Once the user authenticates and gives perms(in the new window opened as a link click), we ask twitter to redirect to our own custom url with the access token and other info(needed to tweet for the user). So, tweeting should work fine. But, how do I notify the widget(running within an iframe in the original window) whether the tweet was successful or not ?

I can think of a polling based solution, but there has to be a better way, right ?

Also, I cannot use window.open (instead of a link with href = and target = _blank) because browsers treat them as popups and block them.

  • 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-05-16T20:14:11+00:00Added an answer on May 16, 2026 at 8:14 pm

    There are 2 options (one of which I personally use).

    1. You can store the fact that it was just authenticated with the token in a Session (in the callback script/page), and in your iframe page have a javascript timer checking another script (via AJAX) whether the Session has been set or not – if it has, then the iframe will know that it’s successful.

    2. The second option is to do the same thing, except check the database if it’s been stored or not (not using Sessions).

    I recommend doing the 1st option though.

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

Sidebar

Related Questions

We have some files on our website that users of our software can download.
We want to implement chat on our website so that users can communicate with
We have developed our website(Business users website) in .net Framework 2.0 Our client us
We have a simple registration form for our website users where we only require
Our website uses Perl to provide a simple mechanism for our HR people to
To deploy a new version of our website we do the following: Zip up
We are doing some performance tests on our website and we are getting the
I'm trying to reduce the form spam on our website. (It's actually pretty recent).
We have several wizard style form applications on our website where we capture information
When developing (works fine live) the pages for our website don't pick up the

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.