title: Javascript split is not a function
body: <p>Hey friends i am using javascript sdk to post on users friends wall with jQuery facebook multi friend selector however i am getting this error friendId.split is not a function. Here is my code</p>
  
  <pre><code>function recommendToFriend(pic, url, friendId, fromName)
  {
      alert(friendId);
      var friendList ;
      pFriend = new Array();
      pFriend = friendId.split(',');
      for( x in pFriend )
      {
          alert(pFriend[x]);
          var publish = {
              method:'feed',
              picture:pic,
              link:url,
              name:'SHARP Product Recommend',
              caption: fromName + 'has recommend a product to you via Sharp Expert lounge',
          };
  
          FB.api('/'+pFriend[x]+'/feed', 'post', publish, function(resp) {
              if( !response || response.error )
                  alert('Unable to share');
              else
                  alert('Successfully posted to firends wall');
          });
      }
  }
  </code></pre>
  
  <p>In alert box i got comma seperated friend ids so i use split function post on each users wall seperately i dont know whats wrong here please help me</p>