Noginx related Facebook authorization issue, someone halp?
-
@julian thanks. I'm always tweaking things, trying to get used to editing.
i'm pretty bad at trying to explain things to developers. So this is what i had.
And when i click on the facebook icon on either 'register' or 'login' i recieve this message:Now if I change the site url to my ip address it will work, but it will take me to the Ip url, which had a ton of weird affects. Those logged into the Ip url show as offline on the domain and vice versa. Those threads which are read, will appear as unread on the ip.
-
And if i look at the URL for that error page , it looks to be pinging the Ip address instead of the domain:
facebook.com/dialog/oauth?response_type=code&redirect_uri=http%3A%2F%2F 198.199.96.7%3A4567 %2Fauth%2Ffacebook.....
-
@julian said:
What error shows up in your console when you attempt to use the proper
base_url
?xxxxx@xxxxxx:~/mynodebb# node app
info: NodeBB v0.3.1 Copyright (C) 2013 DesignCreatePlay Inc.
info: This program comes with ABSOLUTELY NO WARRANTY.
info: This is free software, and you are welcome to redistribute it under certain conditions.
info:
/root/mynodebb/node_modules/nconf/lib/nconf/stores/file.js:141
throw new Error("Error parsing your JSON configuration file: [" + self.f
^
Error: Error parsing your JSON configuration file: [/root/mynodebb/config.json].
at File.loadSync (/root/mynodebb/node_modules/nconf/lib/nconf/stores/file.js:141:13)
at Provider.add (/root/mynodebb/node_modules/nconf/lib/nconf/provider.js:135:23)
at Provider.file (/root/mynodebb/node_modules/nconf/lib/nconf/provider.js:61:15)
at start (/root/mynodebb/app.js:78:8)
at Object.<anonymous> (/root/mynodebb/app.js:67:2)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
and my config.json file is
{
"base_url": "http://californiamotorcycleforum.com”,
"port": "4567",
"use_port": true,
"secret": "XXXXXX",
"bind_address": "0.0.0.0",
"database": "redis",
"redis": {
"host": "127.0.0.1",
"port": "6379",
"password": "",
"database": "0"
},
"bcrypt_rounds": 12,
"upload_path": "/public/uploads",
"relative_path": ""
}
-
Yeah i just use dreamweaver ftp because it's quicker, for me at least. okay i got the website to run while the base_url is http://californiamotorcycleforum.com.
The facebook issue remains the same, although the app is no longer pinging the ip address.Okay. I just deleted the url and domain from facebook's app. Retyped it in again. Hit save. Now it works. this would be rewarding if i knew why that solved it.
-
Nice
I'm just glad it's working. I'm guessing your dreamweaver doesn't insert a plain ol' quote? Seems like an odd thing for a code editor to not do, but I'll refrain from making any disparaging remarks against that IDE
Edit: @kevin, can we possibly feature your forum on our main website?