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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:07:06+00:00 2026-05-26T08:07:06+00:00

I have a super simple Backbone model/collection that wraps around a facebook feed. window.Story

  • 0

I have a super simple Backbone model/collection that wraps around a facebook feed.

window.Story = Backbone.Model.extend({});
window.Stories = Backbone.Collection.extend({
  model: Story,
  url: 'https://www.facebook.com/feeds/page.php?id=186424828078649&format=json&callback=?',
  parse: function(response) {
    console.log(response);
    return response.entries;
  }
});

stories = new Stories();
stories.fetch();

This results in a syntax exception in Chrome (“Unexpected token :”), or in Firefox, an invalid label "title": {.

The Chrome message is a little cryptic, but the Firefox message seems to indicate that the JSON response is being returned. the parse() function is never getting called (as far as I can tell, I’ve set a breakpoint and added a console.log statement and I’m not seeing anything), so is there anything else that Backbone needs to know in order to parse JSON?

My first thought was that it might be a Cross-Domain issue, but I’m using &callback=? which should make sure that $.ajax uses jsonp. I’m betting that this is working, because Firefox is identifying the 2nd line correctly as "title": {.

Any ideas?

PS, jsfiddle is at http://jsfiddle.net/KcE9L/ if you’d like to test things out.

  • 1 1 Answer
  • 1 View
  • 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-26T08:07:07+00:00Added an answer on May 26, 2026 at 8:07 am

    I figured it out after some deep debugging. It’s because Facebook ignores/doesn’t support JSONP, and leaves me with this problem: Jquery success function not firing using JSONP. Now I need to figure out how to get CORS working with Facebook, so if anybody can help me along those lines, I’d be curious.

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

Sidebar

Related Questions

I have a web service that returns a super simple list of objects MyObject[]
Given that you have a super simple notification such as { aps: { alert
Im trying to do something that I think is super simple. i have 3
I have a super simple map reduce test... that isn't working consistently. In a
For example, I have a super simple widget that I want to allow my
I have a super-simple query in a star schema. One fact, two dimensions. I
I have written a django page that requires only super users to login. So
Seems like this should be super-simple but looking around for a simple (or half-way
I have made a super simple test case of a problem I'm having with
Super simple question... Im playing around in the rails console and am trying to

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.