{"id":15656806,"url":"https://github.com/hunkim/facebookspamout","last_synced_at":"2025-05-05T15:21:39.659Z","repository":{"id":98202935,"uuid":"62304407","full_name":"hunkim/FacebookSpamOut","owner":"hunkim","description":"Facebook (group) spam out","archived":false,"fork":false,"pushed_at":"2016-10-12T09:41:29.000Z","size":8,"stargazers_count":24,"open_issues_count":0,"forks_count":6,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-30T22:03:07.095Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hunkim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-30T11:08:37.000Z","updated_at":"2019-05-30T08:35:04.000Z","dependencies_parsed_at":"2023-05-18T14:02:00.928Z","dependency_job_id":null,"html_url":"https://github.com/hunkim/FacebookSpamOut","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunkim%2FFacebookSpamOut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunkim%2FFacebookSpamOut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunkim%2FFacebookSpamOut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunkim%2FFacebookSpamOut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hunkim","download_url":"https://codeload.github.com/hunkim/FacebookSpamOut/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252522178,"owners_count":21761685,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T13:04:26.139Z","updated_at":"2025-05-05T15:21:39.644Z","avatar_url":"https://github.com/hunkim.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Configuration\n\n### Edit config.php (See config.php.sample)\n\n#### Facebook\n* Get a Facebook temp token at https://developers.facebook.com/tools/explorer/\n\n* Required permissions:\n   - To delete a user's post, a user access token with publish_actions permission is required.\n   - To delete a Page's post a Page access token and publish_pages permission is required.\n   - To delete a User's post on Page a Page access token is required.\n\n* Extend the Access Token at:\n    - https://developers.facebook.com/tools/accesstoken/\n\n* Add your group/page numeric ID. If you don't know the ID, use this service:\n    - http://findmyfbid.com/\n\n#### Google Vision API\nGet an API Key. See https://cloud.google.com/vision/docs/common/auth#set_up_an_api_key.\n\n## Module (configuration) testing\nMake sure each module is working OK.\n\n### Facebook\n```bash\nphp FBUtil.php\n```\n\n### Google Vision\n```bash\nphp gVisionAPI.php \"http://home.cse.ust.hk/~hunkim/images/Sungkim2.png\"\n```\n\nYou will see something like this:\n```json\nChecking http://home.cse.ust.hk/~hunkim/images/Sungkim2.png\n{\n  \"responses\": [\n    {\n      \"safeSearchAnnotation\": {\n        \"adult\": \"VERY_UNLIKELY\",\n        \"spoof\": \"VERY_UNLIKELY\",\n        \"medical\": \"VERY_UNLIKELY\",\n        \"violence\": \"VERY_UNLIKELY\"\n      }\n    }\n  ]\n}\n```\n\n## Run main.php periodically.\n* crontab Example (every 5 min):\n```\n*/5 * * * * cd /home/ubuntu/FacebookSpamOut/; php main.php\n```\n* You can run with group id.\n```bash\nphp main.php 174499879257223\n```\n* Also you can set the time interval. Sync with your cron interval.\n```bash\nphp main.php 174499879257223 \"-5 minutes\"\n```\n## Contribution\n\nWe always welcome your comments and PRs!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunkim%2Ffacebookspamout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhunkim%2Ffacebookspamout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunkim%2Ffacebookspamout/lists"}