2

I used the code here: code

But this code no longer functions and I need this code for embed the fb album in my site. So when i search about the problem appeared this:

"error": { "message": "Unknown path components: /photos&callback=", "type": "OAuthException", "code": 2500

So, if anyone can help me. Thanks

David Gorsline
  • 4,933
  • 12
  • 31
  • 36
Juliana Paraíso
  • 23
  • 1
  • 1
  • 3
  • function fbFetch1(){ var url = "https://graph.facebook.com/" + id1 + "/photos&callback=?&limit=0"; $.getJSON(url,function(json){ var html = ""; $.each(json.data,function(i,fb){ var name = ""; if (fb.name !== undefined){ var name = fb.name;} html += ""; }); html += ""; $('.facebookfeed1').animate({opacity:1}, 500, function(){ $('.facebookfeed1').html(html);}); $('.facebookfeed1').animate({opacity:1}, 500);});}; – Juliana Paraíso Jan 23 '13 at 17:33
  • The code in your comment doesn't match the code in the image. There is an extra semicolon in `var url = "graph.facebook.com/"; + id1 + "/photos&callback=?&limit=0";` – David Gorsline Jan 23 '13 at 17:40

1 Answers1

5

You're calling <ID>/photos&callback=....

it should be <ID>/photos?callback=...

The '?' character should mark the start of the query string parameters, not a '&'

Igy
  • 43,710
  • 8
  • 89
  • 115