0

When I debugged my facebook apps, I found a strange facebook javascript that contain an endless loop, but it has no body. What is the purpose of this for(;;); loop?

for (;;);{"__ar":1,"payload":{"content":[],"custom_stories":[],"newest":0}}

URL:https://apps.facebook.com/ajax/canvas_ticker.php?__a=1

hungneox
  • 9,333
  • 12
  • 49
  • 66

1 Answers1

0

Although I linked to a duplicate, the answer on that question is difficult to understand. To the best of my understanding, it means:

Facebook does not want you to directly use the results from their AJAX directly. They want you to go through their API. They don't want you to include their scripts, make use of their internal AJAX responses, and then have direct access to the data returned from those responses.

jwheron
  • 2,553
  • 2
  • 30
  • 40