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

  • Home
  • SEARCH
  • 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 9211363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:16:41+00:00 2026-06-18T01:16:41+00:00

When you successfully exchange a code for a token facebook responses with the following

  • 0

When you successfully exchange a “code” for a token

facebook responses with the following (html body)

 access_token=USER_ACCESS_TOKEN&expires=NUMBER_OF_SECONDS_UNTIL_TOKEN_EXPIRES

But what happens when this code for token exchange fails? how does facebook response when the exchange fails?

Reference https://developers.facebook.com/docs/howtos/login/server-side-login/

  • 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-18T01:16:42+00:00Added an answer on June 18, 2026 at 1:16 am

    facebook can fail to return an access token to your application whenever one of the parameters in the request is incorrect. during development of my oauth framework i tested setting each required parameter to an incorrect value (ie i appended the string 123abc to the start of the correct value). here are the results:

    wrong client id when requesting the access token from facebook, returns json error:

    {
       "error": {
          "message": "Error validating application. Invalid application ID.",
          "type": "OAuthException",
          "code": 101
       }
    }
    

    wrong client secret when requesting the access token from facebook, returns json error:

    {
       "error": {
          "message": "Error validating client secret.",
          "type": "OAuthException",
          "code": 1
       }
    }
    

    wrong code when requesting the access token from facebook, returns json error:

    {
       "error": {
          "message": "Invalid verification code format.",
          "type": "OAuthException",
          "code": 100
       }
    }
    

    wrong grant type when requesting the access token from facebook, returns json error:

    {
       "error": {
          "message": "Invalid grant_type: '123abcauthorization_code'. Supported types: authorization_code, client_credentials",
          "type": "OAuthException",
          "code": 100
       }
    }
    

    wrong scope when requesting the access token from facebook, returns json error:

    {
       "error": {
          "message": "Unsupported scope: '123abcemail'. Supported scopes: ads_management create_event create_note email export_stream friends_about_me friends_activities friends_birthday friends_checkins friends_education_history friends_events friends_games_activity friends_groups friends_hometown friends_interests friends_likes friends_location friends_notes friends_online_presence friends_photo_video_tags friends_photos friends_questions friends_relationship_details friends_relationships friends_religion_politics friends_status friends_subscriptions friends_videos friends_website friends_work_history manage_friendlists manage_notifications manage_pages offline_access photo_upload publish_actions publish_checkins publish_stream read_friendlists read_insights read_mailbox read_page_mailboxes read_requests read_stream rsvp_event share_item sms status_update user_about_me user_activities user_birthday user_checkins user_education_history user_events user_games_activity user_groups user_hometown user_interests user_likes user_location user_notes user_online_presence user_photo_video_tags user_photos user_questions user_relationship_details user_relationships user_religion_politics user_status user_subscriptions user_videos user_website user_work_history video_upload xmpp_login",
          "type": "OAuthException",
          "code": 100
       }
    }
    

    and of course when i do not append 123abc to the values then the access token is returned correctly in each case.

    these responses are as of december 2012, but of course facebook may decide to change them at any point in the future without warning.

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

Sidebar

Related Questions

I'm sending MailMessages with an SmtpClient (being delivered successfully) using an Exchange Server but
I have the following code that creates a PowerShell runspace with the Exchange 2010
Successfully used jquery-infinite-carousel in the past but for my current project I need it
I successfully compiled the following program simple.cc: #include <gtkmm.h> int main (int argc, char
I successfully compiled ActionBarSherlock in Eclipse. But I get 75 errors when I use
So far I have gotten my libev code to successfully return a static sting
this question on google authentication when i try to run below code page successfully
I successfully integrated Facebook SDK 3.1 in my app, and I'm trying to propose
I've been using the Facebook Graph API (uses oauth 2.0 for authentication) successfully for
I have successfully implemented actionsherlock in my project.so here is my code: public class

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.