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

Log in problem with facebook #136

Closed Talha1721 closed 3 years ago

Talha1721 commented 4 years ago

Hello, i am new to facepager. I want to collect allowed individual's facebook posts for my thesis purpose. I have followed all the steps as described. But when try to log in facebook, it shows success but don't provide access token. NB: I am using the (Facepager_Setup_4_2_22.windows.exe ) latest version I have tried graph.facebook.com/v3.2 (default) and graph.facebook.com/v8.0[change from this file Facebook.oa3.json all v3.2 to v8.0 ] My OS windows10 updated version, not genuine

Facepager

strohne commented 4 years ago

Thanks for your bug report. Other users occasionally reported similar behavior but I could not reproduce the issue yet.

So you see a red success message in the login window?

Talha1721 commented 4 years ago

Thank you for the reply.Yes I have seen this red success window. But I have created an app and got an access token. Using that token now I try to fetch data but there is another error. STATUS LOG : .............................................................................................................................................................................................................................................................. 2020-08-09 06:47:28.384768 Added 1 node(s) to queue. 2020-08-09 06:47:28.424891 Fetching data for pasheachiamrabd from https://graph.facebook.com/v8.0/pasheachiamrabd/feed?since=2012-03-19&until=2020-03-20&fields=id%2Ccaption%2Cmessage%2Ccreated_time%2Cfrom%2Ctype%2Cstatus_type&access_token= 2020-08-09 06:47:29.214270 Error 'error (400)' for pasheachiamrabd with message (#100) Pages Public Content Access requires either app secret proof or an app token. 2020-08-09 06:47:29.241278 Fetching completed, 2 new node(s) created. Summary of responses: 1 x error (400). 2020-08-09 06:47:37.640205 Start fetching data. 2020-08-09 06:47:37.655706 Added 1 node(s) to queue. 2020-08-09 06:47:37.694924 Fetching data for pasheachiamrabd from https://graph.facebook.com/v8.0/pasheachiamrabd/feed?since=2012-03-19&until=2020-03-20&fields=id%2Ccaption%2Cmessage%2Ccreated_time%2Cfrom%2Ctype%2Cstatus_type&access_token= 2020-08-09 06:47:38.028228 Error 'error (400)' for pasheachiamrabd with message (#100) Pages Public Content Access requires either app secret proof or an app token. 2020-08-09 06:47:38.048425 Fetching completed, 2 new node(s) created. Summary of responses: 1 x error (400). ........................................................................................................................................................................................ Here is the screenshot-

Facepager0

strohne commented 4 years ago

Hi! Registering your own app is a good workaround if you go through app review. Otherwise access to public content is limited as you can see in the error message. You can try: add app settings to Facepager (settings button) and if you are the admin of a page add that page ID in order to get data of the page. Then login. Maybe change base path back to v3.2 as in the presets.

Regarding the red success error case: are there any logs in the Facepager folder (under your user folder)?

strohne commented 3 years ago

Hi, you had login problems, right? Could you please try whether the latest version (pre-release) works?

jobdiogenes commented 3 years ago

I get the same login problem. First I try to login then show "need an ID", then I put in setttings my fb id. click again. open a window (login) and say "invalid App ID". Then now I understood why registering your own app id works. I using FacePager 4.3,

strohne commented 3 years ago

Hi @jobdiogenes , can you post a screenshot of the "need an ID"-message? I'm not sure whether I understand where this comes from.

jobdiogenes commented 3 years ago

Hi @jobdiogenes , can you post a screenshot of the "need an ID"-message? I'm not sure whether I understand where this comes from.

image

strohne commented 3 years ago

Are you on Linux, Mac, or Windows? With Linux, you need to register your own app at Facebook or whatever API provider you want to use. Then you enter the client ID into the settings.

aymen-ch commented 3 years ago

I tried to collect the data with the source code, but I had a problem I'm not registered at facepager

strohne commented 3 years ago

Hi! If you want to use it from source, you need to register your own app at Facebook and provide the client id. See https://github.com/strohne/Facepager/blob/master/src/credentials.py.readme

I close the issue since this is not related to developing Facepager but rather about using Facepager. If you have more questions, try out the Facepager user group on FAcebook :)

strohne commented 3 years ago

Found the error and hopefully fixed it. Credits go to a very helpful user at the #SMARTDatasprint 2021. Try out the new version.

elcysm commented 2 years ago

I have issue with My Facebook App URL. image

How can I fix this?

elcysm commented 2 years ago

Hi! If you want to use it from source, you need to register your own app at Facebook and provide the client id. See https://github.com/strohne/Facepager/blob/master/src/credentials.py.readme

I close the issue since this is not related to developing Facepager but rather about using Facepager. If you have more questions, try out the Facepager user group on FAcebook :)

Hi @strohne, Can I get your Facepager App ID, my own FB App does not work (Because of "Facebook OAuth "The domain of this URL isn't included in the app's domain"" )

strohne commented 2 years ago

@elcysm , no, sorry, that would definitely violate the terms. Seems to be a configuration issue with your app? Don't forget to set the redirect URI, we use "https://www.facebook.com/connect/login_success.html".

Please, if you have further issues don't hijack existing issues. Go to the Facebook User group, please.

elcysm commented 2 years ago

@strohne Many Thanks, I have fixed my issues!