Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
123worldtraveller opened this issue Apr 1, 2018 · 10 comments
Open
Assignees
Labels

Comments

@123worldtraveller
Copy link

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/

@pablobarbera
Copy link
Owner

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 pablobarbera self-assigned this Apr 3, 2018
@Yael-Shi
Copy link

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!!

@IgorPaim
Copy link

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

@Yael-Shi
Copy link

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

@Schonhorst
Copy link

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

@ananthnann
Copy link

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

r error

@ARM160
Copy link

ARM160 commented Aug 9, 2018

Has there been any update on this? @pablobarbera

@ele6
Copy link

ele6 commented Oct 15, 2018

use https://ngrok.com/docs

@Didiergrimaldi
Copy link

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

@g13wm
Copy link

g13wm commented Sep 27, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants