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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:01:59+00:00 2026-05-14T20:01:59+00:00

I am trying to get my status from facebook using the javascript api. I

  • 0

I am trying to get my status from facebook using the javascript api. I have the following code:

    <div id="fb-root"></div>
<div id="data"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script type="text/javascript">

(function(){
    FB.init({
        appId  : 'SOME ID',
        status : true, // check login status
        cookie : true, // enable cookies to allow the server to access the session
        xfbml  : true  // parse XFBML
    });
});
getData();


function getData(){
    var query = FB.Data.query('SELECT message FROM status WHERE uid=12345 LIMIT 10');


    query.wait(function(rows) {
        for(i=0;i<rows.length;i++){
            document.getElementById('data').innerHTML += 'Your status is ' + rows[i].message + '<br />';
        }
    });
}

</script>

When i try to get my name it works fine but the status is not working. Can someone please tell me what I am doing wrong because the documentation for this is horrible. And yes I replaced the uid with a fake one and yes i put in my app id because like i said when i try to get my name it works fine. Any help is appreciated.

  • 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-14T20:02:00+00:00Added an answer on May 14, 2026 at 8:02 pm

    you need the “read_stream” extended permission for the user. See here: http://developers.facebook.com/docs/authentication/permissions

    read_stream – Provides access to all
    the posts in the user’s News Feed and
    enables your application to perform
    searches against the user’s News Feed

    to request permissions, see here: http://developers.facebook.com/docs/authentication/ particularly the part about requesting additional permissions:

    In the examples above, the OAuth
    process will return the user ID of the
    active Facebook user, with which you
    can fetch all the public parts of the
    user’s profile via the Graph API. As
    mentioned above, if you need to fetch
    private data in the profile or if you
    want to request permission to publish
    to Facebook on a user’s behalf, you
    will need to request extended
    permissions.

    To request permissions via OAuth, use
    the scope argument in your
    authorization request, and include a
    comma separated list of all the
    permissions you want to request. For
    example, this authorization request
    asks for access to the users’ photos
    and videos and requests permission to
    publish to the user’s stream on their
    behalf:

    https://graph.facebook.com/oauth/authorize?client_id=...&redirect_uri=http://www.example.com/callback&scope=user_photos,user_videos,stream_publish
    

    To request additional extended
    permissions, you can redirect to the
    same authorization URL with all the
    permissions you want to request. We
    will automatically exclude those
    permissions your application already
    has for the current user and show a
    dialog requesting only those
    permissions that have not already been
    granted.

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

Sidebar

Ask A Question

Stats

  • Questions 392k
  • Answers 393k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can create a VB macros in word\excel\etc: Dim obj… May 15, 2026 at 1:52 am
  • Editorial Team
    Editorial Team added an answer The variable itself is stored on the stack or DATA… May 15, 2026 at 1:52 am
  • Editorial Team
    Editorial Team added an answer Avoid placing content in Javascript (use html/css then manipulate with… May 15, 2026 at 1:52 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.