Skip to content

Instantly share code, notes, and snippets.

@carpeliam
Created October 17, 2011 02:19
Show Gist options
  • Save carpeliam/1291801 to your computer and use it in GitHub Desktop.
Save carpeliam/1291801 to your computer and use it in GitHub Desktop.
window.Story = Backbone.Model.extend({});
window.Stories = Backbone.Collection.extend({
model: Story,
url: 'https://www.facebook.com/feeds/page.php?id=347259993124&format=json&callback=?',
parse: function(response) {
console.log(response);
return response.entries;
}
});
stories = new Stories();
stories.fetch();
// -> "Uncaught SyntaxError: Unexpected token :" in Chrome, or "invalid label "title": {" in Firefox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment