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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:06:06+00:00 2026-05-23T01:06:06+00:00

when I am executig this code .. NSMutableArray *feed2 =(NSMutableArray *) [facebook_response objectForKey:@paging]; in

  • 0

when I am executig this code ..

NSMutableArray *feed2  =(NSMutableArray *) [facebook_response objectForKey:@"paging"];

in console I am getting …

{
next = "https://graph.facebook.com/xyz/posts?limit=15&&until=1305300725";
previous = "https://graph.facebook.com/xyz/posts?limit=15&&since=1307032141";
}

Now

I am trying to take it in the array and from that I am trying to take it in the string…

like this

for (i=1; i<[feed2 count]; i++){
    NSString* pagString=[[feed2 objectAtIndex:i]
    NSString* myPaging=[pagString valueForKey:@"next"];

}

however it is creshing at the this point..

can anyone tell me what to do?

  • 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-23T01:06:06+00:00Added an answer on May 23, 2026 at 1:06 am

    You need to clarify several things in your question such as what you’re trying to do, and what you’re parsing (JSON I’m assuming).

    You should also specify what the crash log says (which I’m assuming is an ArrayIndexOutOfBoundsException).

    This is so because feed2 is not an array and should not be read as an array (which I can tell looking ar your JSON). It contains no objects so trying to access the first object at index 0 like you’re trying to do with objectAtIndex:, will cause a crash.

    Create feed2 using:

    NSDictionary *feed2 = (NSDictionary *)[facebook_response objectForKey:@"paging"];
    

    In this case it contains key-value pairs so you need only the following to get the string you want:

    NSString *myPaging = (NSString *)[feed2 valueForKey:@"next"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATE 2: The code I currentlly have is as follows: paypalplatform.php: https://www.paypal-labs.com/integrationwizard/adaptive/code2.php basic_payment.php: (the
I'm executing this code: //doc = Jsoup.connect(data[0].getURL()).get(); Document doc = Jsoup.connect(url).post(); and am getting
So I have this code on python, that retrieves output from console when executing
Executing this code: mainLyr = [[CALayer layer] retain]; [mainLyr setFrame:CGRectMake(0.0,0.0,23.0,23.0)]; in debugger, I found
This code below is for executing ls -l | wc -l. In the code,
After executing this code: var runtime = IronRuby.Ruby.CreateRuntime(); var engine = IronRuby.Ruby.CreateEngine(); var scrope
I'm using Guava-05-snapshot, with Sun's JDK 1.6 The code blows up executing this snippet:
I want to delay blocking by 2 seconds while executing this code. How can
I get an EInOutError with message 'Too many open files' when executing this code
I found this code that allows me to opens a window and allows the

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.