Skip to content

hunkim/FacebookSpamOut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Configuration

Edit config.php (See config.php.sample)

Facebook

Google Vision API

Get an API Key. See https://cloud.google.com/vision/docs/common/auth#set_up_an_api_key.

Module (configuration) testing

Make sure each module is working OK.

Facebook

php FBUtil.php

Google Vision

php gVisionAPI.php "http://home.cse.ust.hk/~hunkim/images/Sungkim2.png"

You will see something like this:

Checking http://home.cse.ust.hk/~hunkim/images/Sungkim2.png
{
  "responses": [
    {
      "safeSearchAnnotation": {
        "adult": "VERY_UNLIKELY",
        "spoof": "VERY_UNLIKELY",
        "medical": "VERY_UNLIKELY",
        "violence": "VERY_UNLIKELY"
      }
    }
  ]
}

Run main.php periodically.

  • crontab Example (every 5 min):
*/5 * * * * cd /home/ubuntu/FacebookSpamOut/; php main.php
  • You can run with group id.
php main.php 174499879257223
  • Also you can set the time interval. Sync with your cron interval.
php main.php 174499879257223 "-5 minutes"

Contribution

We always welcome your comments and PRs!

About

Facebook (group) spam out

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages