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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:03:14+00:00 2026-06-11T02:03:14+00:00

I am using the standard API provided by Facebook. A response looks something like

  • 0

I am using the standard API provided by Facebook.
A response looks something like the following for an unsuccessful transaction

{
  "error": {
    "message": "Error validating access token: Session has expired at unix 
                time SOME_TIME. The current unix time is SOME_TIME.", 
    "type": "OAuthException", 
    "code": 190
    "error_subcode": 463
}

and a succesful one ssomething like

{"id":"100054544144330556_25940175479504"}

How do I detect a successful transaction? do I have to parse and see if it contains the word “error” or is there a better way?

  • 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-11T02:03:16+00:00Added an answer on June 11, 2026 at 2:03 am

    Facebook SDK will throw an error if finds ‘error’ in the result. If you are using standard API, then you have to do the same.

    For example, in Facebook PHP SDK you can see this (In a easy readable way, this is not 100% PHP):

    if (isset('error')) {
        throwAPIException();
    }
    

    Just do the same. But don’t forget to parse JSON object before, don’t search as a string, search as a key->value pair if there’s an ‘error’ key.

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

Sidebar

Related Questions

I have a program in C++, using the standard socket API, running on Ubuntu
We can initialize a container deque by using standard input like this: deque<int> c((istream_iterator<int>(cin)),(istream_iterator<int>()));
I'm writing a program using the standard Win32 API. When a user selects a
I am building an App in Flash using graph API, I would like to
We're currently using a 3rd party API that provides datetime in the following format:
I'm using Chan's FAT library that seems to provide a standard FAT filesystem API.
How to do this using standard methods (without manual iteration through source string)? PS:
I am using standard Twitter-Bootstrap code for nav-tabs - http://twitter.github.com/bootstrap/javascript.html#tabs All functionality works but
I am using standard WPF DataGrid. When user double clicks (or F2) on some
I am using standard String.Format method. It is using numeric objects. Console.WriteLine(obj1 = {0}

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.