title: Facebook iOS Integration
body: <p>I have recently implemented the Facebook functionality to post an URL as explained in <a href="http://developers.facebook.com/docs/guides/mobile/" rel="nofollow noreferrer">iOS Facebook Development</a></p>
  <p>It's the same as explained.</p>
  <p>After I've signed up on Facebook and set my app key, I started the iPhone simulator and authorized as explained on Facebook. After that the Mobile Safari didn't jump back to my app (Because I don't want Facebook to jump back. Later I want to do that calling a webpage by my own). So I just started it again (activated because of iOS 4.2).</p>
  <p>After that, I switched to the where I post a default URL.</p>
  <pre><code>NSMutableDictionary *params = [NSMutableDictionary dictionary];
  
  NSString *communityURL = @&quot;http%3A%2F%2Fwww.google.com&quot;;
  
  [params setObject:communityURL forKey:@&quot;link&quot;];
  
  [facebook dialog:@&quot;feed&quot; andParams:params andDelegate:self];
  </code></pre>
  <p>Normally it should bring up a dialog with this parameters, but it just showed an error:</p>
  <blockquote>
  <p>This page contains the following errors:</p>
  <p>error on line 25 at column 35: xmlParseEntityRef: no name</p>
  <p>Below is a rendering of the page up to the first error.</p>
  </blockquote>
  <p>When I debug into the method which calls the dialog, I got the URL, which will be called.
  When executing this URL in a web browser, it works.</p>
  <p>Why doesn't it work?
  What's wrong?</p>