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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:40:02+00:00 2026-05-31T04:40:02+00:00

My tweeting from my app works fine — here’s the code: require_once(‘twitteroauth/twitteroauth.php’); require_once(‘config.php’); $connection

  • 0

My tweeting from my app works fine — here’s the code:

 require_once('twitteroauth/twitteroauth.php');
 require_once('config.php');
 $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
            $_SESSION['access_token']['oauth_token'], 
            $_SESSION['access_token']['oauth_token_secret']);

 // this did nothing vis-a-vis popping up a 'Confirm your tweet' dialog box
 //$content = $connection->get('account/verify_credentials');

  $status = $connection->post('statuses/update', 
                   array('status' => 'Not much snow this winter!'));

Obviously I’m using the outrageously helpful and well-known ‘Abraham’s Twitter OAuth’ wrapper as the inspiration for the working code above.

So I have a submit button on a form — when clicked the above code executes and puts the following tweet in my Twitter feed:
Not much snow this winter!

I was inspired to get the above ‘allow-tweets-from-our-web-site’ code implemented after enjoying that feature on websites I use. We need to allow our users the ability to tweet stuff from our web site – and the above gets us nearly all the way there.

But — there’s one problem with my code above and I’m not finding out in the Twitter API docs nor in Abraham’s docs how to get it to happen.

In the other sites I’ve used, here’s the process:

1) log in to the web site ‘TheSite‘ by way of your already-existing Twitter account

2) click ‘tweet’ on one of the pages of TheSite when you want to share something cool with your followers

3) a Twitter dialog box pops up allowing you to edit your tweet then commit the tweet

4) and after you click ‘send’ or whatever on the ‘confirm your tweet’ dialog box, your message is tweeted.

NOTE: this pre-tweet dialog is a Twitter dialog — in the websites I’ve seen it appear it has the Twitter UI, etc. — it’s not a dialog window being popped up by TheSite.

The problem with my code is — I can’t figure out how to compel Twitter to pop up that ‘pre-tweet confirmation dialog box’ in step (3) above — I can’t even find it in the Twitter dev docs at dev.twitter.com/.

So right now my tweeting code above does NOT give my user the chance to confirm/possibly edit, or even back-out of their tweet before committing to Twitter — my code above just Tweets.

Anyone know how to get this ‘pre-tweet confirmation dialog box’ to appear by way of the Twitter API?

If I could remember one of the websites where I’ve seen this ‘pre-tweet confirm dialog box’ appear I’d mention it but I visit too many sites and right now my mind is a blank, coding all day and have the flu. If you’re sick in bed with the flu just write code and you’ll won’t notice it much.;L

  • 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-31T04:40:03+00:00Added an answer on May 31, 2026 at 4:40 am

    Those generally aren’t done using the API – instead, they’re done via one of Twitter’s embeddable buttons (which create a popup with confirmation).

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

Sidebar

Related Questions

I have this code below. It works fine in safari however in IE the
I'm looking to implement a system for tweeting directly from my site backend, which
I try to access information from Twitter and I followed this link: http://code.google.com/p/sociallib/wiki/SocialLibGuide I
I took apple's sample code tweeting and modified it so that it doesn't use
I saw a cute demonstration of tweeting from R in a presentation some months
The site I'm working on needs to fetch the tweets from 150-300 people, store
My code does a calculation upon a button press in IBAction and returns the
I'm building a flash site that uses video transitions to go from section to
I'm an actionscript novice so I hope I'm missing something simple here. In a
Essentially what I want is for the app, once the user has allowed access

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.