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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:24:20+00:00 2026-05-29T21:24:20+00:00

Why do I need to obtain an access token? Also, should I store this?

  • 0

Why do I need to obtain an access token? Also, should I store this? Would I need to get other information? For example, facebook as appId and ApiSecret. What is the benefit of getting these? Also, should I store any of these?

If I store these into mysql when user logs into do I need the user to check against it? before logging in? I don’t understand if this makes sense because first time users don’t have these information?

Would these expire? So would I have to constantly check and replace my old one when user logs in? or if they keep coming to my page?

I’m currently messing around with facebook’s php sdk and I don’t have any of these in my sql yet, but I’m able to still build an input field on my page and pass it into my facebook’s feed. I’m able to get user’s information and other stuff, but why would I need access token/appid/apisecret?

Thanks! I’m so confused!

  • 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-29T21:24:21+00:00Added an answer on May 29, 2026 at 9:24 pm

    1.Why do I need to obtain an access token?

    access tokens are proofs that you application has required permissions to use currently logged on users information.

    2.should I store this?

    Not required .your SDK will automatically obtain them with your appid when user will connect to your application using facebook.

    3. Would I need to get other information( facebook as appId and ApiSecret)?

    Yes,They are required for facebook to autenticate your app.You need to initialize your SDK with theese.

    4.If I store these into mysql when user logs into do I need the user to check against it? before logging in?

    After you initialize your app with APP ID and SECRET .you can get the id of the current facebook user
    You can save in your database
    FacebookID->UserID for your users in your website.

    If current FacebookID matchs with your users s in your website. you can log them in else redirect to registration form

    5.Would these expire?
    That would be handled by SDK.You only need to check if the currently logged in facebook user is user for your site.APPID and APPSECRET dont expire.

    6.why would I need access token/appid/apisecret?
    Because OAuth 2.0 involves three different steps: user authentication, app authorization and app authentication.
    Refer https://developers.facebook.com/docs/authentication/

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

Sidebar

Related Questions

How can i get access token for searching venues in foursquare. From this gem,
I need to obtain the number of parameters a given block takes. For example:
I need to access a POP3 email account and obtain the the list of
I am trying to get the access token for LinkedIn Here's the part of
In widget's code I need to get access to HTML id of the rendered
I am using ms access DB. I need to obtain sale by date. Here
In my application i need to obtain user location and this is what i
I have written a small java application for which I need to obtain performance
For a programming project I would like to access the temperature readings from my
I'm developing an application and I need to get the current date from a

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.