Rfacebook icon indicating copy to clipboard operation
Rfacebook copied to clipboard

http://localhost:1410/ no longer supported by Facebook API

Open 123worldtraveller opened this issue 8 years ago • 10 comments

Facebook no longer supports http, especially for new app started from March 2018 onwards.

fbOAuth() will display the following error: 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://

image

In R, the following error is resulted.

Error in oauth2.0_access_token(endpoint, app, code = code, user_params = user_params, : Bad Request (HTTP 400). Failed to get an access token.

How can we use https instead of http?

It seems that by default, RFacebook uses http? Copy and paste into Site URL on Facebook App Settings: http://localhost:1410/

123worldtraveller avatar Apr 01 '18 14:04 123worldtraveller

I'm working on fixing this, but it doesn't seem to be easy... In the meantime, here's two temporary solutions:

1 - You can go to https://developers.facebook.com/tools/accesstoken/ Then choose the app you created and then select Debug. In the new page, go all the way down to Extend Access Token. You can then use the token as a regular long-lived token, e.g.:

token <- 'XXXXX' 
getPage("BarackObama", token=token)

2 - Short-lived tokens obtained from https://developers.facebook.com/tools/explorer/ should still work.

Thanks for your patience!

pablobarbera avatar Apr 03 '18 22:04 pablobarbera

Hi, I am happy to see that someone asked about it already, and that you are on it :)

anyway, I still have the same issue- and I got this: capture

Both with the Shot and Long live. Do you have any idae? (It is a little bit urgent)

Thanks!!

Yael-Shi avatar Apr 10 '18 16:04 Yael-Shi

the problem is that the post is passing to facebook "http" or instead of "https" and to get https you must install an SSL certificate and run apache

IgorPaim avatar Apr 10 '18 17:04 IgorPaim

Thanks. Could you please explain a little more about how to do that?

Yael-Shi avatar Apr 11 '18 06:04 Yael-Shi

I had the same problem. Do you have any way to fix this?

Schonhorst avatar Apr 13 '18 15:04 Schonhorst

Having a similar problem to @Yaelshi, though my error is a little different.

r error

ananthnann avatar May 01 '18 04:05 ananthnann

Has there been any update on this? @pablobarbera

ARM160 avatar Aug 09 '18 15:08 ARM160

use https://ngrok.com/docs

ele6 avatar Oct 15 '18 15:10 ele6

hello, do you have a solution for the https issue? @pablobarbera thks

Didiergrimaldi avatar Dec 12 '18 17:12 Didiergrimaldi

Hello has anyone found a workaround for the InstaOauth in the instaR package?

g13wm avatar Sep 27 '20 03:09 g13wm