Is there a way of scraping content from Facebook groups? - facebook

I'd like to get the content from a facebook group since there is a lot of valuable information in there. So is there way, hack or function that you could accomplish this with?

Simple, do an HTTP POST to the Graph API /{groupId} with your access code and you will get information programmatically. See: http://developers.facebook.com/docs/reference/api/group/

Related

Get a notification when a facebook page post is made

I follow a facebook page which has some interesting posts and they post regularly. I want to write a python script that gives me a notification whenever the page posts something. Is there a way I can accomplish this in Python?
I have searched a bit, seems like graph API is the way to go. However, all the tutorials I have seen online give a way to scrape some data or get post information. I do not seem to figure out a way to detect when a new post is made.
How should I accomplish this task?
Notifications for changes or new posts can only be made with Webhooks - which are only available if you manage the Page. Scraping is not allowed on Facebook, so there is no way to get notifications for Pages you do not manage.
You could only check with the API on a regular basis, but you would need Public Page Content Access for that, and you may have a problem with API limits if there are many Page Posts or Pages you want to check.

Is it possible to programmatically analyze facebook trade groups?

Is it possible to programmatically analyze facebook trade groups? If yes, could you point me to a tutorial?
Edit: OK, seems like it's illegal per Facebook Terms of Service. I guess this makes the question irrelevant: https://www.facebook.com/apps/site_scraping_tos_terms.php
As Wizkid mentioned, facebook does not provide an api for fetching other people's facebook page content.
You can access plenty of information about your own Facebook Page using the Graph API, but not pages you dont have permissions on.
Programmatically accessing the page content of pages outside the graph api violates the facebook TOS, which will result in banning.

Facebook API in machine readable format

Where I can find the Facebook API in a format like http://swagger.io, https://apiblueprint.org or http://raml.org?
I want to read and request the facebook server (api) "half-atomatic". My script knowns how to interact with the facebook server. And thats why I need the Facebook API in a machine-readable format.
Thank you for any hint.
Cheers Tobias
From what I've seen of Swagger, it sounds like you're looking for something like Facebook's Graph Explorer. It lets you browse the graph API methods visually, whilst manually creating your own queries and sending them to it.

Find 'posts viewed by user' facebook graph api FQL

I am trying to build an algo which is quiet similar to edgerank algo of facebook. I am kind of missing 'edges' part, which is about user view anyone's post and hence creates an edge in this. Is there a way to get the posts user has viewed irrespective of user liked/commented on them. Apparently I believe this is somewhat not feasible after doing some research on graph/fql. But, did anyone of you came across anything like this?
No, there is no way, via an API or any other method open to developers, to see what posts the user has or has not seen. The only thing you could go by is likes, comments, and shares. That's it.

Access user's event invitations

I am developing an application which would allow a user to better manage their events. However, after reading Facebook's Graph API, FQL and Legacy REST API documentations I did not find a way to obtain the events to which a user has been invited but not yet responded.
Is there any possible way to achieve that?
For some reason this is not covered in the Facebook API docs, but doing a query on the /me/events/not_replied graph path does the trick.
/me/events/{declined|maybe|attending} also work as filters on the /me/events path and pretty much explain themselves. Interestingly enough those three are included in the default /me/events but the events from /me/events/not_replied are not.