Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook #5

Open
datamaskinen opened this issue May 6, 2018 · 7 comments
Open

Facebook #5

datamaskinen opened this issue May 6, 2018 · 7 comments

Comments

@datamaskinen
Copy link

I do not get it ....
Is it that i have created the facebook app wrong?

i just created a new app in facebook develoer site did not add anything else then a name
got the FACEBOOK_APP_ID and FACEBOOK_APP_ID in the dockerenv

https://graph.facebook.com/v2.12/aftonbladet returned code 400.

does it need some sort of access token?

as well i should tell that i run the docker from my laptop ... maybe facebook needs it to be called from an real domain address?

@stefansundin
Copy link
Owner

Hej.

If you created the Facebook app just now, I think the issue might be that your app is only able to use the latest version (v3.0).

From https://developers.facebook.com/docs/apps/versions

An app can make calls to the version of the API that was the latest available when the app was created, as well as any newer, un-deprecated versions launched after the app is created.

It should say what the minimum version is on your app's settings page.

Try changing the version to v3.0, or remove the version altogether for an unversioned call.

And yes, if you are just testing with your browser, then you need to add your app credentials like this:

No need to host the app on a real domain, it should work fine from Docker and localhost. Just use .dockerenv to set the variables.

@datamaskinen
Copy link
Author

Tjena ,
And now while i have you on the line i just want to ask you if this will capture from 'private groups as well?

@stefansundin
Copy link
Owner

I have not tried. I suspect you will need to authenticate with the facebook app, then use that users access token to access the page. One option is to pass the access token in the URL, as rssbox tries to be as stateless as possible and does not save data (besides from some caching in redis).

You will have to make some code changes. I just haven't had a private group that I've wanted to follow, which is why I haven't tried.

@stefansundin
Copy link
Owner

Okay, I think I know why you got this.. because I just started getting it. The full error is not printed by default, but if you print it you will see the following:

To use ‘Page Public Content Access’, your use of this endpoint must be reviewed and approved by Facebook. To submit this ‘Page Public Content Access’ feature for review please read our documentation on reviewable features: https://developers.facebook.com/docs/apps/review.

So I need to do this as well in order to fix the main site. Until I get the time to finish it, Facebook will be disabled.

@stefansundin stefansundin changed the title https://graph.facebook.com/v2.12/aftonbladet returned code 400. Facebook Aug 28, 2020
@stefansundin
Copy link
Owner

I finally deleted the Facebook code that has been disabled for over two years. I doubt that Facebook will ever open up their API again, so any reimplementation will most likely use scraping techniques..

If anyone has any ideas, know about any good resources, or know about existing tools that already scrape Facebook, then please let me know here. Thanks!

@eyoungmin
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants