Meteor Facebook Login /This Site Can't be Reached

meteor

#1

Has anyone encountered this issue when trying to set up Facebook Login for their Meteor App?

I was able to run my Meteor app locally using http://localhost:3000/_oauth/facebook?close

In other words, no issue with the code.

But I wasn’t able to run it when I put code on Cloud 9.

For Cloud 9, I used http://0.0.0.0:8080/_oauth/facebook?close

See attached:


#2

0.0.0.0 is a local IP address that is then proxied to a custom URL to your workspace, which is in teh format myworkspacename-myusername.c9users.io (so probably workspacename-xlabpoh.c9users.io for you). In addition, port 8080 is forwarded to port 80 and 443 (the standard HTTP and HTTPS ports, respectively), so in your facebook configuration, you can just use https://myworkspacename-myusername.c9users.io/_oauth/facebook?close, and it should work.


#3

Thank you very much for your reply. I am afraid it didn’t work.

When I use https://myworkspacename-myusername.c9users.io/_oauth/facebook?close approach/format, I get the following error message

Using http://0.0.0.0:8080/_oauth/facebook?close actually got me farther i.e to the sign in page.

But after that it got back to This Site Can’t be Reached.

BTW, not sure if this piece of information helps, http://0.0.0.0:8080 was part of the instruction given by one of the Meteor package for Facebook Log in.

Also I see this on the search bar for the site that can’t be reached:

http://0.0.0.0:8080/_oauth/facebook?close&code=AQBnmLjZonhDshcGE-1kZWh_AcgisD68y8-s4tUxp8uuLmAv0Gmawa31Y2wo5Xz0IVdxstMw7zwZ2-42go_M9jYcePbTer12LNp-aysrhB0EW-


#4

Please, can you go into your Facebook API configuration, and make sure the URL in my previous post are set there, in place of http://0.0.0.0:8080, then go to your callback configuration in Meteor (I’m not entirely sure where this is, you might have to do a little digging), then set the same value there. It sounds to me like you’ve set the callback URL correctly, but haven’t set it in Facebook, so Facebook rejects it, but when you change it to http://0.0.0.0:8080, it matches the Facebook configuration and proceeds. If you still encounter the problem, paste the code you used and a screenshot of the API configuration on Facebook, please, and we’ll try to figure it out.


#5

!


#6

I’m having the same issue from cloud9. Any chance you could help??