GithubHelp home page GithubHelp logo

fb_notification_sender's Introduction

fb_notification_sender

Overview:

A database driven command line tool used to send notifications on Facebook

Description:

When Facebook first launched their platform, applications were able to send notifications to all their users. This was a very powerful communication channel and for some reason Facbook removed it completely and came up with requests instead. Now they've brought it back, althought still in "beta" the Notifications API is usable.
You can find out more about the Notifications API here: https://developers.facebook.com/docs/app_notifications/

The Notification_sender class provides a wrapper around this API and provides some other useful methods for stats and logs.
sender_instance.php provides an example usage so you can follow along.

WHAT YOU SHOULD KNOW:
1- The Notification_sender is database driven, pulling pending notifications and application users from appropriate tables. If you choose to enable logging, a table needs to exist to hold that info
2- The database settings and app credentials are passed to the constructor via a $config param. see sender_instance.php
3- The minimum expected tables are:
notifications (notification_id, msg, success, fail, date)
application_users (user_ID, fb_code)
notifications_log (log_ID, notification_code, fb_code, status, date)

WHAT YOU SHOULD DO:
1- Update the $config param with your data
2- Let me know if something is not working or needs clarification
3- Enjoy

fb_notification_sender's People

Contributors

themakboul avatar

Watchers

 avatar  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.