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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:04:09+00:00 2026-05-31T19:04:09+00:00

$.getJSON(‘https://graph.facebook.com/BogdanErimia/posts/?access_token=xxxxx&date_format=U&limit=17&callback=?’, function(feed) { $.each(feed.data, function(index, item){ $(‘.tweet’).append(‘<div class=item-normal><div class=normal><div id=story2>’ + item.message + ‘</div></div><div

  • 0
$.getJSON('https://graph.facebook.com/BogdanErimia/posts/?access_token=xxxxx&date_format=U&limit=17&callback=?', function(feed) {
    $.each(feed.data, function(index, item){
        $('.tweet').append('<div class="item-normal"><div class="normal"><div id="story2">' + item.message + '</div></div><div class="twitterbg"></div></div>');
        if ( index == 10 ) return false;
    });
});

There are some items in the feed without this “message”, and for them give me “undefined” error. I want to hide it please…

  • 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-31T19:04:10+00:00Added an answer on May 31, 2026 at 7:04 pm

    Check if(item.message) before you append a row. You may want to use a counter now, to check when you hit the 10th row.

    $.getJSON('https://graph.facebook.com/BogdanErimia/posts/?access_token=xxxxx&date_format=U&limit=17&callback=?', function(feed) {
        var counter = 0;
        $.each(feed.data, function(index, item){
            if(item.message){
               $('.tweet').append('<div class="item-normal"><div class="normal"><div id="story2">' + item.message + '</div></div><div class="twitterbg"></div></div>');
               counter++;
            }
            if ( counter === 10 ) return false;
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

$.getJSON(https://api.foursquare.com/v2/venues/search?&callback=fs_venue_search, { ll: 40.7,-74, client_id: Y3AWKSPSCWEGGSQBELQVDWRG4EX4PRWJ4HMWSKGQSVRPPXI1, client_secret: abc, format: json }, function(data){ alert(data); });
$.getJSON('http://twitter.com/followers/ids.json?screen_name=' + query1 + '&callback=?', function (data) { console.log('JSON data string 1 is: '
$(function(){ $.getJSON('http://pipes.yahoo.com/pipes/pipe.run?_id=7ba696f34ae17b6fa8f5d4de13064dea&_render=json&callback=?',function(data){alert('called')}); }); i am using the above code to acess the a yahoo
String.prototype.getLanguage = function() { $.getJSON('http://ajax.googleapis.com/ajax/services/language/detect?v=1.0&q=' + this + '&callback=?', function(json) { return json.responseData.language; });
$(function(){ $.getJSON('http://ws.audioscrobbler.com/2.0/?method=user.getweeklyartistchart&user=ElicitBelief&api_key=25135a535781328243f9e31968abc14&format=json', function(data) { alert(data) }); }); Firebug says: GET http://ws.audioscrobbler.com/2.0/?method=user.getweeklyartistchart&user=ElicitBelief&api_key=25135a535781328243f9e31968abc14&format=json 200 OK 144ms
$.getJSON('http://twitter.com/followers/ids.json?screen_name=/…'+ query1 + '&callback=?', function(data) { alert('JSON data string 1 is: '+data); $.getJSON('http://twitter.com/followers/ids.json?screen_name=/…'+ query2
This works fine: $.getJSON(http://localhost:59396/xxxWeb/ CarouselHandler.ashx?action=getproducts&ids= + ids, function(data) { carousel.size(allProductIDs.length); if (numberOfImagesLeftToShow < numberOfImagesToDisplay)
First my code $.getJSON(./posts/vote/ + postId + /1, null, function(result) { if (result.result ==
My $.getJSON method is calling the servlet but callback function is not working. this
function load_result() { $.getJSON( http://somesite.com/loadresult.php, function(data) { if( data == undefined || data ==

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.