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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:19:32+00:00 2026-05-16T17:19:32+00:00

Here is my code to query all comments for post_id. When i run it.

  • 0

Here is my code to query all comments for post_id. When i run it. i cannot get text or id of comment.

var queryTemplate = "SELECT text FROM comment WHERE post_id ='1756044141_155528821125475'";
var u2 = FB.Data.query(queryTemplate);
        FB.Data.waitOn([u2], function(args) {
       //console.log(args[0]);
        alert(args)
});

for console.log(args[0]), it show me empty [].
for alert(args), it show me empty also.

i use this queryTemplate in facebook test console, it work! But when i use in my website, it doesn’t work.

here is facebook console show me

[ {
“text”: ” น่ากลัว ” }, {
“text”: “เผลอๆเงินเดือนพวกนี้อาจสูงกว่าวิศวกรหรือหมออีกก็เป็นได้…..
^^”” }, {
“text”: ” อาจช่าย คงจะแพงน่าดู” }, {
“text”: “ดีนะรอดมาได้ ” }, {
“text”: “@Chalita จริงไหม เรียนวิศวะ
ในมหาลัยยังไม่เสี่ยงตายเท่าเรียนช่างกลเลย

@Mat ยินดีด้วยนะ
ได้ข่าวว่าตอนนี้รถคุณแรงน่าดูเลยหนิ
5555+” }, {
“text”: “อัลฮัมดุลิ้ลลาห์

ฮ่าๆๆ
ก็ได้บรรดานักแข่งอย่างพวกคุณๆอะแหละ
มาฝึกปรือให้

ฮ่าๆๆๆ” }, {
“text”: “Perfect ตลอด” }, {
“text”: “ได้ข่าวว่าจะซื้อเหรียญนี่คุณรีม
ฮ่าๆๆ” }, {
“text”: ” เรียกนาละกันนะ วิศวะปลอดภัยกว่าจิง
ทำไมต้องฆ่ากันด้วยเรียนเพื่อเอาวิชาความรู้นะจิงป่ะ
” }, {
“text”: “ถูกกกกก” }, {
“text”: “ช่าย บางที รร พวกช่างอาจต้องปิดตัวลง
เพราะปัญหาเหล่านี้คงแก้ยาก” } ]

here is my website show

[]

I already fix it

Just pust Fb query in FB.getsession such as

FB.getLoginStatus(function(response) {
          if (response.session) {
            var post_id = '1756044141_155528821125475';
            var queryTemplate = "SELECT comments FROM stream WHERE post_id ='1756044141_155528821125475'";
            var u2 = FB.Data.query(queryTemplate);
            FB.Data.waitOn([u2], function(args) {
                console.log(args[0]);
                //alert(args)
            });
          } else {
            // no user session available, someone you dont know
          }
        });
  • 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-16T17:19:33+00:00Added an answer on May 16, 2026 at 5:19 pm

    That’s why firebug was invented. Once you installed it you can do

        function(response) {
            console.log(response);
        }
    

    and see everything what is returned. You would need to do something like response[0].text to get what you need.

    Also there is no id field in the comment table. there is, my bad

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

Sidebar

Related Questions

Here is the pseudo-code for my inline query in my code: select columnOne from
Right, starting to go crazy here. I have the following code: var query =
Here's the query I'm trying to convert into Linq: SELECT R.Code, R.FlightNumber, S.[Date], S.Station,
Here's the code: mysql_query(DELETE . $_GET['id'] . FROM forum_favorites WHERE thread_id=' . $_GET['id'] .
here is my db connection code and query code: // Connecting, selecting database $link
Ok, guys, here's my code for getting SMS: Cursor cursor = getContentResolver().query(Uri.parse(uri), null, CallLog.Calls.DATE
Ok the error is showing up somewhere in this here code if($error==false) { $query
Thanks for checking. All helpful answers/comments are up voted. I have the following code,
Here is the MYSQLi code: public function display() { $sql = SELECT title, date_posted,
Here is my test in my controller: describe GET index do it assigns all

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.