Collecting Data from Facebook Group - facebook

I'm not one of the Facebook Developer, but I need some data for my thesis, regarding one group in Facebook which I'm currently observing.
The problem is, I must collect the data within the last 6 months of:
how many members have joined in the last 6 months, if possible, can be split by monthly.
how many postings in the group in the last 6 months, also.. if possible split by monthly
how many active users within the last 6 months.
Can somebody give me some hints of how to collect those information?

You're going to have a hard time doing this. Groups aren't very API friendly, and they don't have their own insights information.
You can try browsing the group's feed using the Graph API Explorer using the /GROUP_NAME_OR_ID/feed edge, and adding since and until filters to look at monthly data.
However, you won't see all the posts because of Facebook privacy filtering. To get the most reliable data, you'll need to manually count the entries of interest from within the Facebook webapp.

Related

Facebook Graph API /{page-id}/posts - only 600 posts per year?

Currently I am writing a wrapper around the Facebook Graph API to collect all the posts made on specific pages.
For some reason, I am only able to query 600 posts per year. When there is more than that on a page, the API does not complain but randomly leaves out posts. To me there is no rhyme or reason which posts are left out: Certain weeks are completely unaffected, while for others I only get a partial amount of posts or none at all.
Carefully reading the API yields this statement:
The API will return a maximum of 600 ranked, published posts per year.
So, it seems like this is intended behavior.
However, this question from 2015 suggests that this limit is a bug.
Furthermore, I am able to retrieve the full list of posts via the data export of the insights tab in Facebook itself. It seems bizarre to me that I am not able to do the same with the API.
Essentially I have three questions:
Is the year limit intended behavior?
If the limit is intended, what determines which 600 posts are returned per year?
If the limit is intended, is there a way to get around it to retrieve a full list of post(-ids)?
Yep, I've seen this myself, particularly with pages that publish in high frequency such as newspapers. When retrieving posts historically there can be single days missing, the odd week and sometimes a whole month. The only way to not miss any posts is to call the API daily but this only helps moving forward. Or you can contact me and I'll see if we have the posts you're looking for ;-)

Facebook Graph API tagged_places missing results

Issue:
I am currently developing against the tagged_places endpoint. I have noticed that the API is only returning the first tagged place per day, even though a user may have checked into a location multiple times. Can anyone tell me whether this is by design? I am unable to find mention of this limit anywhere in the documentation.
I have all of the proper permissions in place, and I am seeing results, it just is not returning the number of check-ins that I expect to see. I am working to upgrade from an old app still using FQL and I don't believe this was a limitation for us in the past. If there is anyway around this, I'd be very interested to hear it, as we don't want to lose functionality for our clients by making this upgrade. Thanks!!
Example:
My test account has checked in to 2 different locations (A,B) on 3 different days, like follows:
Day 1: Check-in to Location A (x1)
Day 2: Check-in to Location A (x1), Location B (x1)
Day 3: Check-in to Location A (x3)
When I call the tagged_places endpoint through Graph Explorer, I would expect to see a total of 6 check-ins. Instead, these are the results that I see returned:
Day 1: Check-in to Location A (x1) Note: this result is expected
Day 2: Check-in to Location A (x1) Note: I am expecting an additional check-in for Location B
Day 3: Check-in to Location A (x1) Note: I am expecting 2 additional check-ins for Location A
From Facebook Graph API User Tagged Places:
Tagged places are aggregated to within the closest 12 hours, so this endpoint does not provide a complete list of all items that would result in a tagged place.
It is likely this is what is causing the limitation you're experiencing. The page does not give any way around this issue and it is quite possible that the functionality you're looking for just is not possible with the Graph API.

Facebook APIs using checkins as an entry to raffle

I've been exploring ways that it might be possible to promote the business of a friend of mine. One of these ways is by encouraging users to check in to his business, the incentive for this being that they go into the draw to win some kind of prize.
I've been trying to find if the code for this already exists but I might be looking in the wrong places. If it doesn't what would be the best way to do it using the graph APIs.
Thanks.
You can use Facebook app to check-in to your page/business.
All page check-ins can be fetched using following request by your code
https://graph.facebook.com/PAGE_ID/checkins?access_token=PAGE_ACCESS_TOKEN
If you want to get only specific time period check-ins use since and until params in query.
You have to parse the json response and store in an array and randomly select the winner.
you can contact the winner using their facebook id and send them a message.
You will have to write the code yourself, but it would essentially work like this:
Get the user to allow access to the "Raffle" application and get their email address and permissions to look at their check-ins. Email is required to contact the winner.
Use a scheduled script (cronjob) to periodically check if the user has checked-in anywhere (in particular, the business you want to promote).
Award a raffle ticket for each unique check-in within a 24 hour period.
Hold a draw between all the users who checked in on that day or week and award the prize to someone randomly.
Pretty simple flow, but complex code.

Twitter (Social networking) Dataset

I am looking for twitter or other social networking sites dataset for my project. I currently have the CAW 2.0 twitter dataset but it only contains tweets of users. I want a data that shows the number of friends, follower and such.
It does not have to be twitter but I would prefer twitter or facebook. I already tried infochimps but apparently the file is not downloadable anymore for twitter.
Can someone give me good websites for finding this kind of dataset. I am going to feed the dataset to hadoop.
Try the following three datasets:
Contains around 97 milllion tweets:
http://demeter.inf.ed.ac.uk/index.php?option=com_content&view=article&id=2:test-post-for-twitter&catid=1:twitter&Itemid=2
ed note: the dataset previously linked above is no longer available because of a request from Twitter to remove it.
Contains user graph of 47 million users:
http://an.kaist.ac.kr/traces/WWW2010.html
Following dataset contains network as well as tweets, however the data was collected by snowball sampling or something hence the friends network is not uniform. It has around 10 million tweets you can mail the researcher for even more data.
http://www.public.asu.edu/~mdechoud/datasets.html
Though have a look at the license the data is distributed under.
Hope this helps,
Also can you tell me what kind of work are planning with this dataset?
I have few hadoop / pig scripts to use with dataset
100 million pages were extracted from facebook :
http://it.slashdot.org/story/10/07/28/1350222/100-Million-Facebook-Pages-Leaked-On-Torrent-Site?art_pos=6
I don't know what they contain, but you could have a look, it seems it's easy to find on torrents sites.
You could also use the facebook API, but if you want a dataset big enough, you would have to ask facebook the rights to access it.
It contains links to friends, likes, groups, ...
Facebook social graph, application installations and Last.fm users, events, groups collected by researchers at UCIrvine: http://odysseas.calit2.uci.edu/research/
I think the best tool for twitter data gathering is http://www.followthehashtag.com , it can get historical or future data and with advanced data exporting features
With a section where we add big datasets (about 200,000 tweets) once a week
http://followthehashtag.com/datasets/

How do I show information to users belonging to different groups (web) in modx

I have created a website using modx evolution v1.0.2.
The website that I have developed has 12 different types of users (categorized in groups). Each user will be shown a different price depending on the group to which he belongs.
Till now I have been able to fetch the group name of current logged in user (created a snippet for that), but how can I achieve the above mentioned functionality so that each user should be able to see only the price that I have coded according to his group.
For example:
If a user is associated with the 'ocassional' group then he should be shown the price as , say, 50 bucks
and if a user is associated with the 'regular' group then he should be shown the price as, say, 40 bucks
I can easily do this by coding a single snippet for every product's variant, but there are a lot of variants (more than 100 and growing).
I have created a resource(page) for every product and it's variant. Every variant has a price. It is this price that I want to be shown according to the logged in user group membership.
I hope I am able to explain my query clearly.
Please help me do this functionality.
Thanks
I'm not really convinced that modx (as much as i love it) is a great solution for e-commerce sites.
However, the best solution might be to use the database to store the prices of variants per user group and retrieve them yourself using a snippet.