-
Notifications
You must be signed in to change notification settings - Fork 35
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
Login doesn't save the token #28
Comments
quite the same issue, I'm still blocked, my problem is: facebook no longer accepts http redirect address, but only https, and there is no way to change facebook behaviors, perhaps from cambridge analytica scandal. I bypassed it copying and pasting the address from terminal to browser and changing the redirect address from http to https, process goes on, and try to push the code to https://localhost:3333 but the script waits on http port, so, on browser window, I have to change https with http and the script receives the code, but when it tries to excange it with a token, the process stops and exit, as nivek wrote. |
Looks like facebook-cli will need to be updated to use HTTPS during the authentication handshake. Unfortunately, I currently don’t have a computer to work on. Maybe somebody in the community would like to try to solve this? |
See, for me, switching it to https for the facebook URL and then switching the local URL to http worked. The problem then was that the login timed out and it doesn't give me an option to log back in. |
Correction, I was confusing this with the npm fbcli tool. Oops. I CAN switch it to https for the facebook URL and then switch the local back to http, and it acts like it was successful, but it doesn't actually save. |
It looks like I got it working...it's a pain in the neck, but here's the workaround:
For example, run facebook-cli login and you get the output
Copy the URL into your browser and adjust the redirect to have https instead of http. That will return an access token and associated info which you'll just need to copy into your ~/.facebook-clirc file without the quotation marks. |
DONE ! great job! |
update: I'm able to post on my page, maybe it's clear, but the problem was that i received access token for my user, then i went to Graph API explorer and retrieve the token for my page, after changed it in ~/.facebook-clirc, everything went well, so, yes, with some tricks we arrived to the end! |
G;ad I could help with the workaround until someone more knowledgeable can help with changing the http to https. |
Works for me. Just make sure Suspect new users are having this problem because, per Facebook documentation:
@specious: It might be worth updating the Facebook setup section of README.md to reflect this change by Facebook. (And it’s good to know there’s a deadline for when HTTPS will become necessary.) |
I am in awe of the creativity you guys have demonstrated here in this thread. I've returned from hiatus, with ginormous thanks to @btrask for bestowing upon me one of his personal laptops for me to be able to work on. You guys should definitely check out his github projects! I upgraded Functions removed are:
facebook-cli 1.7.1 is now in rubygems and ready to go. |
I've tried the facebook-cli login and it seems successful (```Waiting to receive authorization code on port 3333...
Received authorization code. Exchanging it for an access token...```) but then whenever I try to do anything else such as facebook-cli me or facebook-cli friends, I get an error message stating that I need to login: `Obtain an access token to interact with the Facebook API.
Run: facebook-cli login`
The text was updated successfully, but these errors were encountered: