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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:28:29+00:00 2026-06-09T18:28:29+00:00

A web service I’m developing connects a user’s account to their Facebook account through

  • 0

A web service I’m developing connects a user’s account to their Facebook account through a API that passes a Facebook access token to the backend. Is there some way to ensure that the access token that has been received belongs to my application?

Obviously, there will be errors later on if I try to use an access token from a different application to publish actions, for instance, but I’d rather catch this error case before associating the incorrect access token with a user’s account.

  • 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-09T18:28:30+00:00Added an answer on June 9, 2026 at 6:28 pm

    The easiest way is just make an authenticated request to Facebook when you get their access token. Try and fetch their user info, maybe just their Facebook id, and verify the access token/Facebook id the user sent you is actually correct. You can make a request to the url:

    https://graph.facebook.com/me?fields=id&access_token=…

    to fetch just their id. I’d add this check to the registration process, since it’s pretty important to get the pair correct.

    Edited: To verify the app the access token belongs to, make a request to

    https://graph.facebook.com/app?fields=id&access_token=

    and it’ll give you the app id of the token.

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

Sidebar

Related Questions

When developing a Web service(Hospital Management System) using Java EE, is it necessary that
A web service running in IIS but through a factory doesn't keep up the
I've created a web service in asp.net (ASMX) for caching purposes. The website that
I am developing a web service from a WCF service application, and I run
A web service that I am accessing send the following response... <strong>result</strong> How can
I have a .NET web service that returns an object and I get an
I'm writing a web service in ColdFusion. The problem is that I cannot figure
My Web Service uses another API to obtain data. I cache the data, clean
I have a web service that needs to be protected from unauthorized users. I
The web service that I want to run on AWS has to store and

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.