login in Facebook
See original GitHub issueI am trying to login to facebook to get posts from private posts and tried:
from facebook_scraper.utils import parse_cookie_file
from facebook_scraper import FacebookScraper
scraper = FacebookScraper()
scraper.session.cookies = parse_cookie_file('cookies.json')
scraper.is_logged_in() == True # Should be true but is False
and
from facebook_scraper import FacebookScraper
scraper = FacebookScraper()
scraper.login(email='username@protonmail.com', password='apassword')
scraper.is_logged_in() == True # Should be true but is False
But both fail to login. Any reason or other way of successfully login?
version facebook-scraper==0.2.36
Issue Analytics
- State:
- Created 2 years ago
- Comments:8
Top Results From Across the Web
Log into Facebook
Log into Facebook to start sharing and connecting with your friends, family, and people you know.
Read more >Facebook - log in or sign up
Create an account or log into Facebook. Connect with friends, family and other people you know. Share photos and videos, send messages and...
Read more >Log into Facebook
Log into Facebook to start sharing and connecting with your friends, family, ...
Read more >Facebook – log in or sign up
Create an account or log in to Facebook. Connect with friends, family and other people you know. Share photos and videos, send messages...
Read more >Log in to Facebook | Facebook
Log in to Facebook to start sharing and connecting with your friends, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
With cookies is working again! Thanks @neon-ninja 👏
This is difficult to debug, as the same code works fine with my account. If login doesn’t work for you, why not pass cookies?