A while back I posted my script for exporting Facebook group information and importing it into MySQL using a PHP script. Recently, I received a request to release the search portion of my code. Instead I decided to release the entire project. I just posted the code over at Github. I haven’t done much in the way of making sure the code works especially since I just ripped out all the sensitive information without much thought to the consequences. With that said I cannot imagine it being too difficult to get this up and running again.

Here is the link to my repository: https://github.com/salbahra/Facebook-Group-Search


2 Comments

Win · April 16, 2013 at 10:24 am

I tried getting your code up and running, but unfortunately your comments don’t get imported into the database. This is probably due to some FB-change.

Your Group-ID_Post-ID_Comment-ID syntax would only work if you get the comments from the comment_list array within your first FQL-query for the posts in the group. The second query you use for the comments specific will return the comment-id without the parent-id’s included, so there’s no need to use the explode command anymore, so $comment_id = $comment[“id”] will suffice.

Another note, in your repository the mobile-detect repository is just linked, so if cloned with git, it will only create the folder, but it will be empty. This results in index.php not working, as it depends on mobiledetect/Mobile_detect.php through require. So perhaps it would be nice to mention this in the readme.

Samer · April 16, 2013 at 8:57 pm

Thank you very much! You are absolutely right, and I will make the change today (this is also a problem for me live and looks to have gone into effect only a few months ago). Regardless, thank you for pointing this out!

I will update the readme however I am new to Github and thought the submodule was the best way to load the files. Do you recommend any other solution?

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *