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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:37:50+00:00 2026-06-05T06:37:50+00:00

This seems like a simple question, but I can’t find a simple explanation anywhere.

  • 0

This seems like a simple question, but I can’t find a simple explanation anywhere. I’m sure I’m just searching for the wrong thing, so please bear with me…

If I use the Twitter REST API (for example) and I use OAuth to authenticate the user, how do I verify to Twitter that I have the appropriate credentials when sending API requests after the initial authentication? Am I supposed to submit the AuthToken (via GET/POST variables) each time I want to communicate with the API? Seems simple, but there are no “optional” authentication parameters in the Twitter API for the methods.

Update:

Since I’m using PHP to access the Twitter API, I stumbled upon this code:

$connection = getConnectionWithAccessToken("abcdefg", "hijklmnop");
$content = $connection->get("statuses/home_timeline");

Does this mean that you simply authenticate every time you want to access the API?

For example:

In index.php:
    1. authenticate
    2. access desired API methods
    3. Finish loading page

User navigates to page2.php

In page2.php:
    1. authenticate...again
    2. access desired API methods...again
    3. Finish loading page

User navigates to page3.php

In page3.php:
    1. authenticate...again!
    2. access desired API methods...again
    3. Finish loading page

This seems frustratingly repetitive to authenticate every single time like this, but it seems like it is necessary. Does the above explain the gist of OAuth (more importantly, authentication in general)?

  • 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-05T06:37:53+00:00Added an answer on June 5, 2026 at 6:37 am

    OAuth protocol uses access_token like Session ID, when your user has already authorized to your site, you can use access_token that API server gives you to access their API.

    So, technically you are not authenticating with every request, Twitter only uses a “SessionID” to identify your further requests.

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

Sidebar

Related Questions

This seems like a simple question, but I can't find it documented anywhere. I'd
This seems like a really simple question, but I can't find the answer anywhere.
This seems like a simple question but I can't find the answer anywhere. I've
this seems like a simple enough question but I can't seem to find a
This seems like a really simple question but I can't seem to find information
This seems like a simple question, but I can't find it with the Stack
This seems like a simple question but I can't seem to find an answer
Ok.... This seems like a simple question but I can't find any info about
This seems like a simple question but I can't find a good Razor resource
This may seem like a simple question, but I can't find the definite answer:

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.