Giter VIP home page Giter VIP logo

facebook2wordpress's Introduction

facebook2wordpress

Ruby program that exports posts on Facebook Page to a WP importable XML

Tutorial

Step 1

Open get_post_pics.rb with your favorite text editor. Edit line 9: Change fasle to true if you want to download all the photos posted on Facebook. Disable this feature would save time and bandwidth when just debugging. Edit line 17: Page ID is a uniqe number which only the page's admins know. Usually it can be found on about page. Edit line 18: default_creator is the author name that will be shown on WP posts.

Step 2

Get your access_token from Facebook API explorer (https://developers.facebook.com/tools/explorer/). Please note the token expires in 30 minutes. Replace the example token with your real token by editing the file named token.

Step 3

Now you are all set. Run

ruby get_post_pics.rb < token

on terminal and see if it works. If everything works correctly, it will get the lastest post on your page and export it XML files named after author names.

If the test aobve was successful, run

ruby get_post_pics.rb 999 < token

to get ALL of your posts. Change the number 999 if you have even more posts than that!

Step 4

Enter your WP site's control panel. Install WP import tool if it hasn't been there. Import XML files.

facebook2wordpress's People

Contributors

liponan avatar

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.