title: Facebook API v3.2 connection issue with Rfacebook package in RStudio
body: <p>I'm connecting to <strong>Facebook API v3.2</strong> in order to get my friends information. I had the following error:</p>
  
  <pre><code>Invalid Scopes: user_relationships, publish_actions. This message is only shown 
  to developers. Users of your app will ignore these permissions if present. Please 
  read the documentation for valid permissions at: 
  https://developers.facebook.com/docs/facebook-login/permissions
  </code></pre>
  
  <p>How to fix this issue using <strong>API v3.2</strong>?</p>
  
  <p>I have proceeded to the following steps:</p>
  
  <ol>
  <li><p>I connect to the Facebook API via App: I have created a new Facebook APP (from <a href="https://developers.facebook.com/" rel="nofollow noreferrer">https://developers.facebook.com</a>) and set it up by default.</p></li>
  <li><p>I connected to the Facebook API v3.2 via authentication token (from <a href="https://developers.facebook.com/tools/explorer" rel="nofollow noreferrer">https://developers.facebook.com/tools/explorer</a>) and I obtained access token of all necessary permissions.</p></li>
  </ol>
  
  <p>I used this R code in RStudio to connect to my API:</p>
  
  <pre><code>install.packages("devtools")
  library(devtools)
  
  # I used install_github to get the updated version of Rfacebook package
  install_github("pablobarbera/Rfacebook", subdir="Rfacebook")
  require (Rfacebook)
  </code></pre>
  
  <ol start="3">
  <li>I used this <strong>fb_oauth</strong> to connect my R session with the App I already created and authenticate it to my Facebook profile for Data Mining.</li>
  </ol>
  
  <pre><code>fb_oauth &lt;- fbOAuth(app_id="My_APP_ID", app_secret="MY_APP_SECRET_KEY", extended_permissions = TRUE)
  </code></pre>
  
  <p>I expect that the token will give access to some of the authenticated user's private information (birthday, hometown, location, relationships) and that of his/her friends, and permissions to post status updates as well as to access check-ins, likes, and the user's newsfeed.</p>
  
  <p>But I got the following error on RStudio command line.</p>
  
  <pre><code>Copy and paste into Site URL on Facebook App Settings: http://localhost:1410/ 
  When done, press any key to continue...
  Waiting for authentication in browser...
  Press Esc/Ctrl + C to abort
  Authentication complete.
  Error in oauth2.0_access_token(endpoint, app, code = code, user_params = user_params,  : 
    Bad Request (HTTP 400). Failed to get an access token.
  </code></pre>