title: Unable to like using Facebook iOS SDK
body: <p>I am trying to implement like in my Objective C application. If I am not logged into Facebook, then after tapping Like button, application opens login screen. I will log into my account. Then screen goes light gray with gray logo of Facebook for a while (with 2 shortly showed grey facebook screens before that) and then I am redirected back into my app. If I am logged into Facebook when running application, everything is the same except not showing login screen.</p>
  
  <p>So my problem is, that I am not getting correct confirmation dialog that should appear after logging into FB account and I am redirected back into my app. Like is not placed.</p>
  
  <p>What can be cause of this behaviour?</p>
  
  <p>I have placed all 3 needed rows into .plist and this is how I am creating like button (p_webView is my subclass of UIWebView):</p>
  
  <pre><code>if (p_webView.fbLikeButton == nil) {
      p_webView.fbLikeButton = [[FBSDKLikeControl alloc] init];
  }
  p_webView.fbLikeButton.objectID = p_webView.article.url;
  [p_webView.fbLikeButton setFrame:CGRectMake(p_webView.fbLikeButton.frame.origin.x, height + 5, p_webView.fbLikeButton.frame.size.width, p_webView.fbLikeButton.frame.size.height)];
  [p_webView.fbLikeButton setCenter:CGPointMake(p_webView.frame.size.width / 2, p_webView.fbLikeButton.center.y)];
  [p_webView.scrollView addSubview:p_webView.fbLikeButton];
  </code></pre>
  
  <p>More information - I have tried this on simulator (there I do not have FB app, so it was using Safari only). After loggin in, I have got error: </p>
  
  <blockquote>
    <p>"The page you requested cannot be displayed at the moment. It may be temporarily unavailable, the link you clicked on may be broken or expired, or you may not have permission to view this page."</p>
  </blockquote>
  
  <p>As it might be difficult to find solution - one needs to be in FB app as administrator, developer or tester for like button to work when testing app that has not been approved by Apple for using native like button yet.</p>