{"id":16517813,"url":"https://github.com/rancoud/rfacebookbot","last_synced_at":"2025-03-02T19:40:44.590Z","repository":{"id":80410631,"uuid":"47473719","full_name":"rancoud/RFacebookBot","owner":"rancoud","description":"Bot For Facebook","archived":false,"fork":false,"pushed_at":"2022-03-08T08:33:58.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T19:44:31.636Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rancoud.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":"2015-12-05T21:40:31.000Z","updated_at":"2023-05-21T20:01:04.000Z","dependencies_parsed_at":"2023-06-07T10:00:25.534Z","dependency_job_id":null,"html_url":"https://github.com/rancoud/RFacebookBot","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/rancoud%2FRFacebookBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rancoud%2FRFacebookBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rancoud%2FRFacebookBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rancoud%2FRFacebookBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rancoud","download_url":"https://codeload.github.com/rancoud/RFacebookBot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241564432,"owners_count":19982958,"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-11T16:33:47.004Z","updated_at":"2025-03-02T19:40:44.583Z","avatar_url":"https://github.com/rancoud.png","language":"JavaScript","readme":"# RFacebookBot\nBot for Facebook\n\n## Setup\n1. Create Facebook application\n2. Rename conf.facebook.app.sample.js to conf.facebook.app.js\n3. Fill the file with **name** , **app_id** , **app_secret** (**callback_url** is for user authentification)\n4. Create your job in folder jobs\n\n## Example\nOnce your facebook application created you can run job.\n```\nnode job example\n```\n\n## How to write job\n1. Create a file in jobs folder, the filename is the job name\n2. In job get a Facebook app by using ```getFacebookApp(name, endpoints)```\n  * if you provide no arguments the first Facebook app is returned\n  * name (string or undefined - optionnal) : using a specific Facebook app\n  * endpoints (array - optionnal) : return an available Facebook app which can use thoses endpoints (rate limit)\n\n## PID watcher and killer\nJobs'list running (pid + job + options)\n```\nnode pid\n```\nKill a job\n```\nnode pid kill {pidId}\n```\nKill all jobs\n```\nnode pid kill all\n```\n\n## JOBS\n* example -\u003e do nothing\n\n## Facebook User Authentification\nGetting access token for external user with an app.  \n```\nnode save_oauth \"myapp\"\n```\n*(if app name argument is not provided the first one in conf is picked)*  \nA server will be up at 127.0.0.1 on port 3000.  \nWhen callback is done a file is created in oauth_access_cache like this: screen_name.tok  \nIt will contain the app name, access token and access token secret.  \n\n## Optionnal arguments\n```\n// user to use (require getting access token)\n-u OR --user \"myuser\"\n// facebook app to use\n-a OR --app \"myapp\"\n// file to upload\n-f OR --file \"/path/to/file\"\n```\n**for user argument use in lower case the screen name of the account**  \n\n## Documentation Facebook API\nList of endpoints (GET and POST)\n```\nnode doc\n```\nList of endpoints (GET only)\n```\nnode doc get\n```\nList of endpoints (POST only)\n```\nnode doc post\n```\nEndpoint details\n```\nnode doc \"statuses/home_timeline\"\n```\nList of parameters\n```\nnode doc parameters\n```\nTest endpoint (GET and POST)\n```\nnode doc test \"statuses/home_timeline\"\n```\n\n## TODO\n* complete\n\n## Nota Bene\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Francoud%2Frfacebookbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Francoud%2Frfacebookbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Francoud%2Frfacebookbot/lists"}