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

fan_count #54

Closed world33 closed 7 years ago

world33 commented 7 years ago

Is there any way to use Facepager to retrieve just a Facebook page total count of likes and followers? For example for this Facebook page it would be https://www.facebook.com/Harvard/ 4,938,347 people like this (total fan count) 4,862,079 people follow this

I could not find any preset to do so. The total fan count (fan_count) is referenced in the graph api at the following page: https://developers.facebook.com/docs/graph-api/reference/page/

strohne commented 7 years ago

Yes, it is possible. But Facepager is not an one-click-application. You need to study the settings and get familiar with the way the Facebook Graph API works by yourself, sorry.

Look at the Help-Page, try the Getting Started (which will show you how to get like count), play around with settings...

world33 commented 7 years ago

Thanks for your reply. I found the solution. I could not find any email where to share the Jason file as per your help page suggestion. Below the Jason code if interested in adding it to the default presets:

{
  "columns": [
    "id",
    "fan_count"
  ],
  "options": {
    "params": {
      "<page>": "<Object ID>"
    },
    "relation": "/<page>/?fields=fan_count",
    "pages": 1
  },
  "name": "Get Page Fan Count",
  "module": "Facebook",
  "description": "Extract the number of fans/likes a Facebook page has (fan_count)"
}
strohne commented 7 years ago

Great, thank you, I will add it in the next release.

world33 commented 7 years ago

No worries, I edited it lately at GitHub and removed unnecessary table fields.

From: strohne [mailto:notifications@github.com] Sent: Monday, April 10, 2017 9:11 PM To: strohne/Facepager Facepager@noreply.github.com Cc: world33 world33@gmail.com; Author author@noreply.github.com Subject: Re: [strohne/Facepager] fan_count (#54)

Great, thank you, I will add it in the next release.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/strohne/Facepager/issues/54#issuecomment-292919608 , or mute the thread https://github.com/notifications/unsubscribe-auth/ATjVdRoIM7r8V_DH_K2dA0q_gR8R4Tg-ks5rug4-gaJpZM4M4fu1 . https://github.com/notifications/beacon/ATjVdX12YbKvQfR1ubiVF3Xf1k0FKzNCks5rug4-gaJpZM4M4fu1.gif