GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - andyjy/Selective-Tweets: The Selective Tweets Facebook app for selectively posting tweets to your Facebook profile and/or page(s)

BranchesTags
Open more actions menu

Latest commit

 

History

25 Commits
25 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
cli
cli
 
 
config
config
 
 
cron
cron
 
 
lib
lib
 
 
templates
templates
 
 
www
www
 
 
wwwadmin
wwwadmin
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
composer.lock
composer.lock
 
 
logs
logs
 
 

Repository files navigation

Selective Tweets

Copyright 2009-2012 Andy Young [email protected] @andyy

License: MIT

https://github.com/andyyoung/Selective-Tweets

This is the source code for Selective Tweets - an app that enables people that use both Facebook and Twitter to cross-post Tweets to their Facebook profile or page using the #fb hashtag.

The app can be found at: http://apps.facebook.com/selectivetwitter/

Source code released January 2012 under the MIT licence. You are free to use this code for educational purposes, create derivative works and redistribute so long as you retain the original licence and copyright notices acknowledging myself as the original author. Be innovative, don't be evil.

The Story

I wrote up the story behind this app and how it collected 1M users in this blog post.

Requirements

Pretty simple:

  • PHP under Linux
  • A web server (I use Apache)
  • MySQL database
  • Cron for scheduling jobs

How it works

The app provides a web interface based on the Facebook PHP SDK enabling users logged into Facebook to configure a Twitter account to watch for tweets. It then collects tweets containing the #fb hashtag using Twitter's streaming API and stores them in a database-based queue (MySQL). A daemon run every couple of minutes processes the queue of tweets, matches them against records of Facebook profiles/pages and compiles Facebook Graph API batch requests to cross-post updates as appropriate.

To get set up

  • Edit config/config.php
  • Create DB according to config/database_schema.sql
  • Make www/ available under a webserver
  • Execute cron/check_stream_tracker.php to start tracking the twitter stream
  • Run the CLI scripts under cron/ on a regular basis to do the work

References

  • Twitter Streaming API
  • PHP Phirehose library
  • Facebook Graph API
  • Facebook PHP SDK

Have fun!

Andy Young

T: @andyy

E: [email protected]

B: http://www.insomanic.me.uk

About

The Selective Tweets Facebook app for selectively posting tweets to your Facebook profile and/or page(s)

Resources

Readme
License
Activity

Stars

82 stars

Watchers

15 watching

Forks

20 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.