nolboo / FacebookSpamOut

Facebook (group) spam out

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configuration

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

Facebook

Google Vision API

Get an API Key. See https://cloud.google.com/vision/docs/auth-template/cloud-api-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 welcome your comments and PRs!

About

Facebook (group) spam out


Languages

Language:PHP 100.0%