JSON length Causing Facebook Post to Wall Functionality to Break in IE8 & IE9 -


i have been using facebook javascript sdk post content cms facebook fan page. works pulling current pages content using jquery , feeding fb.api function. works fine in firefox, safari, chrome, etc. problem ie in nothing happens, no error message, no javascript errors, nothing.

here function using:

function publish(){     //variables pulled page content so:     var fb_message = $('#content').text();      fb.api('/me/feed', 'post',     {         access_token    : fb_token,         name            : fb_name,         message         : fb_message,         link            : fb_link,         picture         : fb_photo,         caption         : fb_caption      },function(response) {         if (!response || response.error) {             alert("couldnt post");          } else {             alert('posted');           }     }) } 

if remove message fb.api json, or limit length of string being sent 850 chars works fine in ie, have no idea why? string loreum ipsum, no odd characters or line breaks.

update seems if remove caption, name, link, etc , post 'message' in json can push longer message string through facebook, seems point length of json being kind of problem...

any pointers appreciated.

update tried rewriting functionality scratch in separate html file, still getting problem in ie, have submitted bug facebook. see have it.

this has been recognized bug facebook team, , have plans push fix soon. can see bug report here.

update fix pushed, , problem solved in ie9+. ie7 , 8 still have problems long strings. in fact appear have become more of problem since fix.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -