question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

login in Facebook

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
xecgrcommented, May 24, 2021

With cookies is working again! Thanks @neon-ninja 👏

0reactions
neon-ninjacommented, May 23, 2021

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?

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found