Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 120
Registered: ‎05-20-2011
My Device: Touch 9800
My Carrier: Vodafone

JSON parsing issue

Hello Members,

 

Just tried to parse a simple json format provided by the Graph API of facebook.

 

Url:- http://www.facebook.com/feeds/page.php?id=139731946049246&format=json

 

When i hit the same url on browser it show me the data in JSON format but while using the same in the application by creating HTTP connection , it returns me the output like this:-

 

<!DOCTYPE html>
<html lang="en" id="facebook" class="no_js">
<head><meta charset="utf-8" /><script>function envFlush(a){function b(c){for(var d in a)c[d]=a[d];}if(window.requireLazy){requireLazy(['Env'],b);}else{Env=window.Env||{};b(Env);}}envFlush({"user":"0","locale":"en_GB","method":"GET","svn_rev":711202,"tier":"","vip":"69.171.229.25","static_base":"http:\/\/static.ak.fbcdn.net\/","www_base":"http:\/\/www.facebook.com\/","rep_lag":2,"fb_dtsg":"AQDesdJ2","ajaxpipe_token":"AXjo-rIcuUuNAy7N","lhsh":"YAQH9jkcx","tracking_domain":"http:\/\/pixel.facebook.com","retry_ajax_on_network_error":"1","fbid_emoticons":"1"});</script><script>envFlush({"eagleEyeConfig":{"seed":"0Siq"}});CavalryLogger=false;window._script_path = "WebUnsupportedBrowserController";</script><noscript><meta http-equiv="refresh" content="0; URL=/unsupportedbrowser?_fb_noscript=1" /></noscript><meta name="robots" content="noodp, noydir" /><meta name="referrer" content="default" id="meta_referrer" /><meta name="description" content="Facebook is a social utility that connects people with friends and others who work, study and live around them. People use Facebook to keep up with friends, upload an unlimited number of photos, post links and videos, and learn more about the people they meet." /><link rel="alternate" media="handheld" href="http://www.facebook.com/unsupportedbrowser" /><title id="pageTitle">Update Your Browser | Facebook</title><link rel="shortcut icon" href="http://static.ak.fbcdn.net/rsrc.php/yi/r/q9U99v3_saj.ico" /><noscript><meta http-equiv="X-Frame-Options" content="deny" /></noscript>
    <link rel="stylesheet" href="http://static.ak.fbcdn.net/rsrc.php/v2/yP/r/Z9IjS4Y0cPE.css" />
    <link rel="stylesheet" href="http://static.ak.fbcdn.net/rsrc.php/v2/y-/r/umpZz0F7E5c.css" />
    <link rel="stylesheet" href="http://static.ak.fbcdn.net/rsrc.php/v2/yO/r/yjmR1lMjRhi.css" />
    <script src="http://static.ak.fbcdn.net/rsrc.php/v2/y6/r/Oczn1YJD530.js"></script>
  <script>window.Bootloader && Bootloader.done(["gHLv0"]);</script><script>new (require("ServerJS"))().handle({"require":[["lowerDomain"],["QuicklingPrelude"],["Primer"]]})</script></head><body class="unsupportedBrowser fbx UIPage_LoggedOut Locale_en_GB"><div id="FB_HiddenContainer" style="position:absolute; top:-10000px; width:0px; height:0px;"></div><div class="_li"><div id="pagelet_bluebar" data-referrer="pagelet_bluebar"><div id="blueBarHolder"><div id="blueBar"><div><div class="loggedout_menubar_container"><div class="clearfix loggedout_menubar"><a class="lfloat" href="/" title="Go to Facebook Home"><i class="fb_logo img sp_6jxgq1 sx_df432d"><u>Facebook logo</u></i></a><div class="menu_login_container rfloat"><form id="login_form" action="https://www.facebook.com/login.php?login_attempt=1" method="post" onsubmit="return window.Event &amp;&amp; Event.__inlineSubmit &amp;&amp; Event.__inlineSubmit(this,event)"><input type="hidden" name="lsd" value="AVpIfqrE" autocomplete="off" /><table cellspacing="0"><tr><td class="html7magic"><label for="email">Email or Phone</label></td></tr><tr><td><input type="text" class="inputtext" name="email" id="email" value="" tabindex="1" /></td><td><label class="uiButton uiButtonConfirm" id="loginbutton" for="u_0_1"><input value="Log in" tabindex="4" type="submit" id="u_0_1" /></label></td></tr><tr><td class="login_form_label_field"><div><div class="uiInputLabel clearfix"><input id="persist_box" type="checkbox" name="persistent" value="1" tabindex="3" class="uiInputLabelCheckbox" /><label for="persist_box">Keep me logged in</label></div><input type="hidden" name="default_persistent" value="0" /></div></td></tr></table><input type="hidden" autocomplete="off" id="next" name="next" value="http://www.facebook.com/unsupportedbrowser" /><input type="hidden" name="charset_test" value="&euro;,&acute;,€,´,æ°´,Д,Є" /><input type="hidden" autocomplete="off" name="timezone" value="" id="u_0_0" /><input type="hidden" name="lgnrnd" value="011726_4jU3" /><input type="hidden" id="lgnjs" name="lgnjs" value="n" /><input type="hidden" autocomplete="off" id="locale" name="locale" value="en_GB" /><input type="hidden" autocomplete="off" id="nopw" name="nopw" value="1" /></form></div></div></div></div></div></div></div><div id="globalContainer" class="uiContextualLayerParent"><div id="content" class="fb_content clearfix"><div class="UIFullPage_Container"><div class="pvl unsupportedBrowserPage"><div class="pam unsupportedBrowserBox uiBoxWhite"><h1 class="ptl pbm _6n _6s _6v ">Update Your Browser</h1><div class="pvm phl unsupportedBrowserText _6q _6t _mf ">You’re using a web browser that isn’t supported by Facebook.<br />To get a better experience, go to one of these sites and get the latest version of your preferred browser:</div><a class="mvl pvm phl unsupportedBrowserBrowser" href="/l.php?u=http%3A%2F%2Fwindows.microsoft.com%2Fen-US%2Finternet-explorer%2Fdownloads%2Fie&amp;h=kAQGNx36R&amp;s=1" rel="nofollow" onmouseover="LinkshimAsyncLink.swap(this, &quot;http:\/\/windows.microsoft.com\/en-US\/internet-explorer\/downloads\/ie&quot:smileywink:;" onclick="LinkshimAsyncLink.swap(this, &quot;\/l.php?u=http\u00253A\u00252F\u00252Fwindows.microsoft.com\u00252Fen-US\u00252Finternet-explorer\u00252Fdownloads\u00252Fie&amp;h=kAQGNx36R&amp;s=1&quot:smileywink:;" target="_blank"><i class="img sp_bxv2lg sx_22e355"></i><div class="_6o _6v ">Internet Explorer</div></a><a class="mvl pvm phl unsupportedBrowserBrowser" href="/l.php?u=https%3A%2F%2Fwww.mozilla.org%2Fen-US%2Fproducts%2Fdownload.html&amp;h=4AQFOR9nk&amp;s=1" rel="nofollow" onmouseover="LinkshimAsyncLink.swap(this, &quot;https:\/\/www.mozilla.org\/en-US\/products\/download.html&quot:smileywink:;" onclick="LinkshimAsyncLink.swap(this, &quot;\/l.php?u=https\u00253A\u00252F\u00252Fwww.mozilla.org\u00252Fen-US\u00252Fproducts\u00252Fdownload.html&amp;h=4AQFOR9nk&amp;s=1&quot:smileywink:;" target="_blank"><i class="img sp_bxv2lg sx_b33417"></i><div class="_6o _6v ">Mozilla Firefox</div></a><a class="mvl pvm phl unsupportedBrowserBrowser" href="/l.php?u=http%3A%2F%2Fwww.apple.com%2Fsafari%2Fdownload%2F&amp;h=KAQFbEV79&amp;s=1" rel="nofollow" onmouseover="LinkshimAsyncLink.swap(this, &quot;http:\/\/www.apple.com\/safari\/download\/&quot:smileywink:;" onclick="LinkshimAsyncLink.swap(this, &quot;\/l.php?u=http\u00253A\u00252F\u00252Fwww.apple.com\u00252Fsafari\u00252Fdownload\u00252F&amp;h=KAQFbEV79&amp;s=1&quot:smileywink:;" target="_blank"><i class="img sp_bxv2lg sx_f8c135"></i><div class="_6o _6v ">Safari</div></a></div><a class="mtl unsupportedBrowserMobile" href="/mobile"><div class="clearfix"><i class="_8o _8t lfloat img sp_bxv2lg sx_c1a98c"></i><div class="_8m "><div class="_6a"><div class="_6a _6b" style="height:78px"></div><div class="_6a _6b"><div class="mbs _6q _6v ">Get Facebook on Your Phone</div><div class="_6u ">Stay connected anytime, anywhere.</div></div></div></div></div></a></div></div></div><div id="pageFooter" data-referrer="page_footer"><div id="contentCurve"></div><div class="clearfix" id="footerContainer"><div class="mrl lfloat"><div class="fsm fwn fcg"><span> Facebook © 2013</span> · <a rel="dialog" href="/ajax/intl/language_dialog.php?uri=http%3A%2F%2Fwww.facebook.com%2Funsupportedbrowser" title="Use Facebook in another language." role="button">English (UK)</a></div></div><div class="navigation fsm fwn fcg" role="contentinfo" aria-label="Facebook site links"><a href="http://www.facebook.com/mobile/?ref=pf" title="Take a look at Facebook mobile.">Mobile</a> · <a href="http://www.facebook.com/find-friends?ref=pf" title="Find anyone on the web.">Find Friends</a> · <a href="http://www.facebook.com/badges/?ref=pf" title="Embed a Facebook badge on your website.">Badges</a> · <a href="http://www.facebook.com/directory/people/" title="Browse our people directory.">People</a> · <a href="http://www.facebook.com/directory/pages/" title="Browse our pages directory.">Pages</a> · <a href="http://www.facebook.com/directory/places/" title="Browse our places directory.">Places</a> · <a href="http://www.facebook.com/appcenter/?ref=pf" title="Check out Facebook App Centre.">Apps</a> · <a href="http://www.facebook.com/appcenter/category/games/?ref=pf" title="Check out Facebook games.">Games</a> · <a href="http://www.facebook.com/appcenter/category/music/?ref=pf" title="Check out Facebook music apps.">Music</a> · <a href="http://www.facebook.com/facebook" accesskey="8" title="Read our blog, discover the resource centre and find job opportunities.">About</a> · <a href="http://www.facebook.com/campaign/landing.php?placement=pflo&amp;campaign_id=402047449186&amp;extra_1..." title="Advertise on Facebook">Create an Advert</a> · <a href="http://www.facebook.com/pages/create.php?ref_type=sitefooter" title="Create a Page">Create a Page</a> · <a href="http://developers.facebook.com/?ref=pf" title="Develop on our platform.">Developers</a> · <a href="http://www.facebook.com/careers/?ref=pf" title="Make your next career move to our brilliant company.">Careers</a> · <a href="http://www.facebook.com/privacy/explanation" title="Learn about your privacy and Facebook.">Privacy</a> · <a href="http://www.facebook.com/help/cookies" title="Learn about cookies and Facebook.">Cookies</a> · <a href="http://www.facebook.com/policies/?ref=pf" accesskey="9" title="Review our terms and policies.">Terms</a> · <a href="http://www.facebook.com/help/?ref=pf" accesskey="0" title="Visit our Help Centre.">Help</a></div></div></div></div></div>
<script>Bootloader.setResourceMap({"yyy8B":{"type":"css","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yP\/r\/Z9IjS4Y0cPE.css"},"N6\/ui":{"type":"css","permanent":1,"src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/y-\/r\/umpZz0F7E5c.css"},"w1M7q":{"type":"css","permanent":1,"src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yO\/r\/yjmR1lMjRhi.css"},"X\/Fq6":{"type":"css","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/y6\/r\/YlbIHaln_Rk.css"},"8ST0e":{"type":"css","permanent":1,"src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yj\/r\/CytB6W-UuZh.css"},"VDymv":{"type":"css","permanent":1,"src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yP\/r\/wZTh_Y7w_DT.css"}});Bootloader.setResourceMap({"5y062":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yE\/r\/qYlOzXJ5K4A.js"},"L+Vx6":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/y-\/r\/K6SaTkPmeHc.js"},"I3oTO":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/y6\/r\/vQbhpVYZbLu.js"},"wdvfS":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/y-\/r\/Vq-GJPZOvIz.js"},"a3l1q":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yv\/r\/x5MUDFb4Syb.js"},"v\/fk3":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yO\/r\/ShYLqLrb187.js"},"cNca2":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yn\/r\/XQ1IPAI9NyR.js"},"bf2Jx":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yc\/r\/hkn3CsHKAeG.js"},"oE4Do":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yD\/r\/65c9OW-i481.js"},"NEKAZ":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yM\/r\/QpCqQzKvF-K.js"},"S2nrU":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yY\/r\/xNjfiVxVCwa.js"},"bwsMw":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/y_\/r\/hwOyT9fmfZV.js"},"hr6Xa":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yR\/r\/doSEvFpB_VV.js"},"ARl1D":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yW\/r\/Mv4I8pP3WDc.js"},"zyFOp":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yA\/r\/HAFtXNlDnG9.js"},"BxqMa":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yu\/r\/psXjp8gT-sG.js"},"4ADqj":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yZ\/r\/RfDjagfi371.js"},"\/A8Jt":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yu\/r\/83KWxtCeYox.js"},"f1TAw":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yV\/r\/__1czLGTtAt.js"},"2ma5f":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yA\/r\/DpvUNDehyjp.js"},"sI+vk":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yd\/r\/MChNBWcxdPg.js"},"wxq+C":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yn\/r\/IQQ6g_qWHAK.js"},"Rs18G":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yN\/r\/7NckTJJ_l8J.js"},"H42Jh":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/y3\/r\/ppwOo4BAmlb.js"},"AtxWD":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/y5\/r\/3QU5LsAd2e8.js"},"MqSmz":{"type":"js","src":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yH\/r\/ghlEJgSKAee.js"}});
Bootloader.enableBootload({"ErrorSignal":{"resources":["5y062","cNca2"],"module":true},"AsyncDOM":{"resources":["I3oTO","5y062","wdvfS","bf2Jx"],"module":true},"ConfirmationDialog":{"resources":["5y062","I3oTO","wdvfS","L+Vx6","oE4Do"],"module":true},"Dialog":{"resources":["5y062","I3oTO","wdvfS","L+Vx6","N6\/ui"],"module":true},"Event":{"resources":["5y062"],"module":true},"AsyncDialog":{"resources":["5y062","I3oTO","wdvfS","L+Vx6","NEKAZ","N6\/ui"],"module":true},"FbdDialogProvider":{"resources":["S2nrU","5y062","bwsMw"],"module":true},"React":{"resources":["hr6Xa"],"module":true},"AsyncRequest":{"resources":["5y062"],"module":true},"PhotoSnowlift":{"resources":["5y062","I3oTO","wdvfS","L+Vx6","NEKAZ","N6\/ui","ARl1D"],"module":true},"SpotlightShareViewer":{"resources":["5y062","I3oTO","wdvfS","L+Vx6","X\/Fq6","zyFOp"],"module":true},"PhotoTagger":{"resources":["5y062","I3oTO","wdvfS","L+Vx6","N6\/ui","BxqMa","NEKAZ","ARl1D","4ADqj","\/A8Jt"],"module":true},"fb-photos-snowlift-css":{"resources":["8ST0e","N6\/ui"]},"Live":{"resources":["I3oTO","5y062","wdvfS","bf2Jx"],"module":true},"PhotoTagApproval":{"resources":["5y062","I3oTO","wdvfS","ARl1D","4ADqj"],"module":true},"PhotoTags":{"resources":["5y062","I3oTO","wdvfS","ARl1D","N6\/ui","4ADqj"],"module":true},"TagTokenizer":{"resources":["I3oTO","5y062","wdvfS","f1TAw","4ADqj","N6\/ui","L+Vx6","NEKAZ"],"module":true},"fb-photos-snowlift-fullscreen-css":{"resources":["VDymv"]},"PhotoPivot":{"resources":["5y062","I3oTO","wdvfS","L+Vx6","ARl1D","NEKAZ","N6\/ui","2ma5f"],"module":true},"SnowliftPicCropper":{"resources":["5y062","I3oTO","wdvfS","L+Vx6","N6\/ui","ARl1D","NEKAZ","w1M7q","sI+vk","wxq+C"],"module":true},"PhotosButtonTooltips":{"resources":["5y062","I3oTO","wdvfS","NEKAZ","L+Vx6","N6\/ui","Rs18G"],"module":true},"VideoRotate":{"resources":["5y062","I3oTO","wdvfS","H42Jh"],"module":true},"AsyncResponse":{"resources":["5y062"],"module":true},"PhotoInlineEditor":{"resources":["5y062","I3oTO","wdvfS","ARl1D","NEKAZ","L+Vx6","N6\/ui","4ADqj","AtxWD"],"module":true},"Form":{"resources":["5y062","I3oTO","wdvfS","L+Vx6"],"module":true},"IframeShim":{"resources":["I3oTO","5y062","wdvfS","L+Vx6","NEKAZ","MqSmz"],"module":true},"Toggler":{"resources":["5y062","I3oTO","wdvfS","L+Vx6","N6\/ui","NEKAZ"],"module":true},"Tooltip":{"resources":["5y062","I3oTO","wdvfS","NEKAZ","L+Vx6","N6\/ui"],"module":true},"DOM":{"resources":["I3oTO","5y062","wdvfS"],"module":true},"Input":{"resources":["5y062","L+Vx6"],"module":true},"trackReferrer":{"resources":[],"module":true},"DimensionTracking":{"resources":["5y062"],"module":true},"HighContrastMode":{"resources":["5y062","I3oTO","wdvfS"],"module":true},"detect-broken-proxy-cache":{"resources":["5y062"]}});</script>
<script>require("InitialJSLoader").loadOnDOMContentReady(["5y062","L+Vx6","I3oTO","wdvfS","a3l1q","v\/fk3"]);</script>
<script>
Bootloader.configurePage(["yyy8B","N6\/ui","w1M7q"]);
Bootloader.done(["jDr+c"]);
require("InitialJSLoader").handleServerJS({"elements":[["m_0_0","login_form",2],["m_0_1","loginbutton",2],["m_0_2","login_form",2]],"define":[["BanzaiConfig",[],{"MAX_SIZE":10000,"MAX_WAIT":60000,"COMPRESSION_THRESHOLD":800,"gks":{"cavalry":true,"jslogger":true,"miny_compression":true,"notifications":true,"time_spent":true,"time_spent_debug":true,"useraction":true}}]],"require":[["PixelRatio","startDetecting",[],[1]],["Intl","setPhonologicalRules",[],[{"meta":{"\/_B\/":"([.,!?\\s]|^)","\/_E\/":"([.,!?\\s]|$)"},"patterns":{"\/\u0001(.*)('|&#039:smileywink:s\u0001(?:'|&#039:smileywink:s(.*)\/":"\u0001$1$2s\u0001$3","\/_\u0001([^\u0001]*)\u0001\/e":"mb_strtolower(\"\u0001$1\u0001\")","\/\\^\\x01([^\\x01])(?=[^\\x01]*\\x01)\/e":"mb_strtoupper(\"\u0001$1\")","\/_\u0001([^\u0001]*)\u0001\/":"javascript"}}]],["PostLoadJS","loadAndRequire",[],["DimensionTracking"]],["PostLoadJS","loadAndCall",[],["HighContrastMode","init",[{"currentState":null,"spacerImage":"http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/y4\/r\/-PAXP-deijE.gif"}]]],["ClickRefLogger"],["userAction","setUATypeConfig",[],[{"ua:n":false,"ua:i":false,"ua:d":false,"ua:e":false}]],["ScriptPathState","setUserURISampleRate",[],[0.0002]],["userAction","setCustomSampleConfig",[],[{"uan":{"test":{"test":true}}}]],["UserActionHistory"],["TinyViewport"],["WebStorageMonster","schedule",[],[false]],["AsyncRequestNectarLogging"],["LoginFormController","init",["m_0_0","m_0_1"],[{"__m":"m_0_0"},{"__m":"m_0_1"}]],["FlipDirectionOnKeypress"]]});
onloadRegister_DEPRECATED(function (){$("u_0_0").value = tz_calculate(1358155046)});
onloadRegister_DEPRECATED(function (){try { $("email").focus(); } catch (_ignore) { }});
onafterloadRegister_DEPRECATED(function (){Bootloader.loadComponents(["detect-broken-proxy-cache"], function(){ detect_broken_proxy_cache("0", "c_user") });});
</script>
<script>var bigPipe = new (require('BigPipe'))({"lid":0,"forceFinish":true});</script>
<script>bigPipe.onPageletArrive({"is_last":true,"css":["yyy8B","N6\/ui","w1M7q"],"js":["5y062","L+Vx6","I3oTO","wdvfS","a3l1q","v\/fk3"],"id":"first_response","phase":0})</script>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
<script>bigPipe.onPageletArrive({"is_last":true,"css":["yyy8B","N6\/ui","w1M7q"],"js":["5y062","L+Vx6","I3oTO","wdvfS","a3l1q","v\/fk3"],"id":"","phase":1,"the_end":true})</script>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          </body></html>

 

Now this is the JS page but i am not sure why i am getting this. Please provide me the assistance for the same.

 

Thanks

Amar
Developer
Posts: 19,621
Registered: ‎07-14-2008
My Device: Not Specified

Re: JSON parsing issue

If you save this file to an html page and then try to display that page, I think you will find that it is telling you this:

 

"You’re using a web browser that isn’t supported by Facebook.<br />To get a better experience, go to one of these sites and get the latest version of your preferred browser"

 

So you must send some sort of Browser identification with your request, presumably using one of the headers.

 

Sorry this is about as much as I can help, I'm not sure how to set this ID, but I presume the Facebook SDK does set it correctly and so you might be able to find the appropriate thing from there. 

 

Hope this helps.