Fboauth integration with r and facebook

facebook not allowing to integrate becuase fboauth calling via http: but facebook allowing only for https hence we can't connect with facebook using Rfacebook so, any one can help on this.

Thanks in adavnce

I just wanted to cross reference to this hot topic discussion in the github issue on this sujbect:

Some users managed to find a solution there. May be related for Rfacebook.

1 Like

On the provided link I tried looking for any solution which works on R. But couldn't find any. Kindly do let me know you have find any solution for the same.
The error message I am getting is : "Insecure Login Blocked: You can't get an access token or log in to this app from an insecure page. Try re-loading the page as https://"



in order to receive token from facebook, do:

  1. Change settings of your 'Valid OAuth Redirect URIs'
    to https://nickname.serveo.net/ (URI)

  2. Open a SSH tunel in your system terminal:

ssh -R nickname:443:localhost:1410 serveo.net

This creates a tunel between your localhost and the aforementioned URL for the OAuth dance.

  1. Include the redirect URI in the fbOAuth() function from Rfacebook package:
 trace('fbOAuth', edit = T)

 myapp <- oauth_app("facebook", app_id, app_secret, redirect_uri = URI)

Load the token using the modified function.


I show how to use the OAuth device flow in an updated demo in httr: https://github.com/r-lib/httr/blob/c7167ecb52469cd46653d49ad4b68e7f16acaab8/demo/oauth2-facebook.r