Giter VIP home page Giter VIP logo

facebook-backup's Introduction

Status

其實支援下載使用者自己的資料,不過臉書 App 審核沒過,因此程式碼預設只能下載粉絲專頁。 如果要下載自己的資料:

  1. 把程式碼放在靜態網頁伺服器(最簡單的方式就是在 GitHub 上複製成新專案的 gh-pages 分支
  2. 臉書開發人員介面新增一個自己的 App 。
  3. 修改程式碼: js/fbsdk-config.js 中的 appId ,以及 js/index.js 中的 $scope.disableUserCrawl 。(我知道程式碼很亂,但我現在不想整理)
  4. 用 HTTP(S) 協定去瀏覽網頁,應該就會有 "My data" 的按鈕可以按。

This project can download your own data. But I didn't pass Facebook App review. Therefore the site can only download data of fan pages. To download your own Facebook data:

  1. Copy the codes of this project to a (static) web server, such as GitHub Pages.
  2. Go to Facebook Developers to add a new app.
  3. Modify:
  • js/fbsdk-config.js: appId
  • js/index.js: $scope.disableUserCrawl
  1. Browse via HTTP(S) protocol. There suppose to be a "My data" button.

PS: I know the codes are messy, but I just don't wanna rearrange them now.

Why do I need this?

Facebook does have a "Download a copy of your Facebook data." link in General Account Settings page. But the downloaded data has the following cons:

  1. No link to the page of the origin post or photo. This means it's difficult to check whether an origin post has newer comments after you download.
  2. Contains only the post message, excluding comments (replies) of them.
  3. Messages are in pure text. This means tags to other user/page are lost.
  4. Showing user names without the link to those users. This means if the user you mentioned has changed his/her user name, you may lose him/her.
  5. All posts are listed in one page. This means the file is very large. And since the page has no hashes in its HTML, it would be inconvenient to share a specified post even you upload the file to some web server.

Warning

Private posts and photos are crawled, too. You shall check if the contents of crawled data is suitable to publish.

Usage

https://kong0107.github.io/facebook-backup/

Disclaimer

I don't guarantee anything.

facebook-backup's People

Contributors

kong0107 avatar

Watchers

 avatar  avatar  avatar

Forkers

adsa562

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.