strohne / Facepager

Facepager was made for fetching public available data from YouTube, Twitter and other websites on the basis of APIs and webscraping.

Home Page:https://github.com/strohne/Facepager/releases

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with the Facebook Get Reactions Presets

skwolvie opened this issue · comments

Hi

The Get Reactions to a post-id presets is not working. Earlier,I was able to populate reactions from posts to a new column.
Now with the same preset, I'm getting error 400, with the message: # 100 missing permissions.

I tried to find a workaround for this failure with the API option and selecting //reactions/ options.
With this, I get 2 responses populated at Node level 3: 1. an offcut object, 2. an empty object.

The empty object contains nothing. the offcut object contains key-value pairs as shown in screenshot-5.
The //reactions/ API does not take the fields as a parameter. It takes only 2 parameters type, and a summary. the type param can be LIKE, LOVE, SAD,.... and the summary param can be 0 or 1 if it is set to 1, you get the summary key-value pair in the offcut object. Although with this workaround you cannot get all the different type reactions summary count at the same time, it seems to be fetching the count of reactions.

Questions:

  1. How to fix the preset to get the output like we were able to obtain earlier?

  2. How to extract the total_count from the summary variable of the API response?
    This type of filtering with field parameter is not supported by the API: reactions.type(LIKE).limit(0).summary(1).as(like)

    I tried to make some modifications to the parameters to get this thing to work. But I was not completely Successful. The last screenshot shows the modifications I did to the params and the output I was getting.

  3. How to finally extract all reaction counts associated with a post-id to new columns and export the results to a CSV file?

I have added the screenshots in the order of traversal of the app below:

Please share valuable suggestions and inputs.

image
image
image
image
image

image

Hi @skwolvie , thank you for the detailed description. Since this is an issue about using Facepager and dealing with the Facebook API, may I ask you to ask your question in the Facepager User Group on Facebook? In the GitHub issue system we try to stick to development issues.

Anyways, you should check the API reference of Facebook to get this working. Recent changes may have broken the preset, my first try would be setting the API version to 5.0.

Hi @strohne, I posted this issue request on the facebook's facepager user group. I copied it here since, it allows organization of the issue submission, and also I didnt get any responses from the group.

I changed the API version to 5.0 to 12.0 and tested. I was not able to set the 'field', 'as', parameters and also I was unable to get the summary.total_count to a column.

Just a quick clarification. This issue is also related to the development of the presets right? please do correct me if I'm wrong.

Best,

I am facing the same problem.
Any updates/solution to this issue please ?

Well, the API changed, this is not within the realm of Facepager developers. If you habe any suggestions, please let me know.