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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:24:38+00:00 2026-06-03T03:24:38+00:00

I got this error while trying to get facebook access_token from node.js server: {error:{message:(#803)

  • 0

I got this error while trying to get facebook access_token from node.js server:

{“error”:{“message”:”(#803) Some of the aliases you requested do not exist
: access_token”,”type”:”OAuthException”,”code”:803}}

Following is the code for getting access_token:

var options={
        host:'graph.facebook.com',      
        path:'oauth/access_token?client_id=MYAPPID&redirect_uri=http://127.0.0.1:8000/&client_secret=MYAPPSECRET&code=CODEOBTAINEDFROMFB'
}
http.get(options,function(res){
    res.on('data', function (chunk) {
        console.log('BODY: ' + chunk);
    });
});

Request for the same url from my browser is working fine and I am getting the access_token also. what is the prob here?

Update
This may be the most funniest thing I have experienced from node.js. I have updated the above code as:

var http=require('http')
var options={
        host:'grah.facebook.com',       
        pathname:'/oauth/access_token',
        search:'client_id=MYAPPID&redirect_uri=http://127.0.0.1:8000/&client_secret=MYAPPSECRET&code=CODEOBTAINEDFROMFB'
}

http.request(options,function(res){
        console.log('http fb code')
         res.setEncoding('utf8');
    res.on('data', function (chunk) {
        console.log('BODY: '+chunk);
    });     
});

And what happening is server throw an error called socket hang up. Also my network connection(internet connected via mobile modem) breaks out immediately! While Googling this issue I found a lot similar to this, but can’t find the perfect solution…

  • 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-03T03:24:40+00:00Added an answer on June 3, 2026 at 3:24 am

    The problem is with http object. Facebook only allows https while requesting with client_secret.
    so this can work as I expected:

    var options={
            host:'graph.facebook.com',      
            path:'/oauth/access_token?client_id=APPID&redirect_uri=http://127.0.0.1:8000/&client_secret=CLIENTSECRET&code=FBUSERCODE'
    }       
    var https=require('https'); 
    https.get(options,function(res){
            console.log('http fb code')
             res.setEncoding('utf8');       
             res.on('data', function (chunk) {
                    console.log('BODY: '+chunk);
            });
    });         
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Got this error message while trying to configure an entitydatasource in the designer: My
While trying to generate classes from a xsd, i got this error: java.lang.IllegalArgumentException: Illegal
This is the error I get while trying to access a sqlite database from
i got this error while trying to rebind a grid: ( Parent page (
I got this error An error occurred while parsing EntityName. Line 1, position 61.
while doing LINQ I got this Error. Cannot implicitly convert type 'System.DateTime?' to 'System.DateTime'.
i have a problem while loading a UITableView on UITabBarController, i got this error
I am new to maven, while using mvn install I've got this error, any
I got this error today when trying to open a Visual Studio 2008 project
I have got an error while trying to upgrade our large project to SL4.

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.