title: How to add permission params to getLoginUrl() in php sdk 3.1.1
body: <p>How do i add permission parameters to getLoginUrl() in php sdk 3.1.1?</p>
  
  <pre><code>if ($user) {
    $logoutUrl = $facebook-&gt;getLogoutUrl();
  } else {
    $loginUrl = $facebook-&gt;getLoginUrl();
  }
  </code></pre>