Created
October 17, 2011 02:19
-
-
Save carpeliam/1291801 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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