strohne / Facepager

Facepager was made for fetching public available data from YouTube, Twitter and other websites on the basis of APIs and webscraping.
https://github.com/strohne/Facepager/releases
506 stars 198 forks source link

Facepager simply won't work #77

Closed goozleology closed 6 years ago

goozleology commented 6 years ago

I simply cannot get Facepage to work. I would like to grab the members of my Group but it doesn't work. Plus, it doesn't really tell me what the error is. I'd really appreciate some help figuring it out.

Some things I'm wondering might be the problem:

  1. Should the graph be the current version? Which I think is version 2.9
  2. Should I be using the regular FB URL instead?

image

goozleology commented 6 years ago

I just tried using https://www.facebook.com for the base path and I got these error messages:

2017-12-21 18:10:06.172000 Start fetching data for 1 node(s). 2017-12-21 18:10:06.266000 Fetching data for 224257544368444 from https://www.facebook.com224257544368444/members?access_token=EAABj9aBk8VwBAJKO1crquMRdMd83vs6RGrrvgze1ujZAWhltoKEAmONTx3oPtREKLLB6hZA2pF1mnpYTJWrfyOQnXYwKbDib6bSPtZBtSP77TUZCcYh3mdsjpIglRvHqFqZBbfXUafzekNvvZBFJHljDPwzA2RLTIZD 2017-12-21 18:10:29.554000 Automatic retry: Request Error: ('Connection aborted.', error(10061, 'No connection could be made because the target machine actively refused it')) 2017-12-21 18:10:51.977000 Automatic retry: Request Error: ('Connection aborted.', error(10060, 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond')) 2017-12-21 18:11:14.306000 Fetching completed, 0 new node(s) created. Summary of responses: .

goozleology commented 6 years ago

Then I tried https://www.facebook.com/groups/ and got this:

2017-12-21 18:14:56.542000 Start fetching data for 1 node(s). 2017-12-21 18:14:56.578000 Fetching data for 224257544368444 from https://www.facebook.com/groups/224257544368444/members?access_token=EAABj9aBk8VwBAJKO1crquMRdMd83vs6RGrrvgze1ujZAWhltoKEAmONTx3oPtREKLLB6hZA2pF1mnpYTJWrfyOQnXYwKbDib6bSPtZBtSP77TUZCcYh3mdsjpIglRvHqFqZBbfXUafzekNvvZBFJHljDPwzA2RLTIZD 2017-12-21 18:14:58.487000 Fetching completed, 0 new node(s) created. Summary of responses: .

goozleology commented 6 years ago

OK, so I was able to run a scrape for an event that I'm hosting plus some posts on a fan page. So, do I have to be an admin on the group that I would like to scrape members?

strohne commented 6 years ago

Hi goozleology,

some hints:

  1. The basepath has to be the path of the API, current version would be https://graph.facebook.com/v2.11/ or at least https://graph.facebook.com/v2.5/, see the Graph API reference. The older version might be better because you don't need to mess around with the fields-parameter, see the Current Status section on https://github.com/strohne/Facepager

  2. Your first approach (screenshot) was perfectly right, except that the status log says you fetched data for 0 nodes. This should be 1 node. Did you select the node before hitting Fetch data? Maybe there was a bug in this version of Facepager. Please just retry.

  3. See https://developers.facebook.com/docs/graph-api/reference/group/members/ for details about permissions