Facebook Graph Api Jsonp Format , What Does The /* */ In First Line Signify?
I noticed an empty comment block in JSONP output returned by facebook graph api for all methods. URL that I called : https://graph.facebook.com/NUMERIC_FACEBOOK_ID/friends?access_t
Solution 1:
We added this to protect against an attack where a third party site bypasses the content-type of the response by doing:
<object type="application/x-shockwave-flash"data="http://graph.facebook.com?callback=[specifically crafted flash bytes]">
</object>
Google does something similar, except they use //... + \n (e.g. http://www.google.com/calendar/feeds/developer-calendar@google.com/public/full?alt=json&callback=foo)
Post a Comment for "Facebook Graph Api Jsonp Format , What Does The /* */ In First Line Signify?"