{"id":15706773,"url":"https://github.com/peter279k/social-sync","last_synced_at":"2025-05-12T19:10:31.787Z","repository":{"id":79147576,"uuid":"103844793","full_name":"peter279k/social-sync","owner":"peter279k","description":"This is the simplest way to sync the feed for the multiple social websites.","archived":false,"fork":false,"pushed_at":"2022-11-29T03:08:46.000Z","size":32,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T01:51:39.678Z","etag":null,"topics":["cloudmailin","facebook-api","php7","plurk","social-websites","twitter-api"],"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/peter279k.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":"2017-09-17T16:41:45.000Z","updated_at":"2023-03-19T17:44:40.000Z","dependencies_parsed_at":"2023-05-23T21:30:37.196Z","dependency_job_id":null,"html_url":"https://github.com/peter279k/social-sync","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/peter279k%2Fsocial-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter279k%2Fsocial-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter279k%2Fsocial-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter279k%2Fsocial-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peter279k","download_url":"https://codeload.github.com/peter279k/social-sync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253805860,"owners_count":21967053,"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":["cloudmailin","facebook-api","php7","plurk","social-websites","twitter-api"],"created_at":"2024-10-03T20:28:11.326Z","updated_at":"2025-05-12T19:10:31.766Z","avatar_url":"https://github.com/peter279k.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# social-sync\n\nThis is the simplest way to sync the feed for the multiple social websites.\n\n## social website lists\n\n- [Facebook](https://facebook.com)\n- [Twitter](https://twitter.com)\n- [Plurk](https://plurk.com)\n\n## Scenario\n\n- Using the e-mail client to send the mail to the [cloudmailin](https://www.cloudmailin.com) address.\n- The web service is to receive the mail and process the contents.\n- The web service will post the feed to the specified social websites after checking the mail content is successful.\n\n## Request the Facebook and Twitter developer APP\n\n- [Facebook](https://developers.facebook.com)\n- [Twitter](https://stackoverflow.com/questions/12916539/simplest-php-example-for-retrieving-user-timeline-with-twitter-api-version-1-1/15314662#15314662)\n\n## Usage\n\n- Set the [cloudmailin](http://docs.cloudmailin.com/getting_started/) service.\n- Set the `receive.php` to the receiving mail endpoint.\n- Visit the `facebook_user_token.php` from web browser to get the short-lived user access token and add it in `api-key.ini`.\n- Refer this [link](https://developers.facebook.com/docs/facebook-login/access-tokens/expiration-and-extension/) to get the long-lived token.\n- Remember that the Facebook user access token is valid for 60 days.After 60 days, you have to request the new access token from `facebook_user_token.php`.\n- In order to build the service easily, we use the Composer to manage the required packages.\n- Firstly, clone the repo: ` git clone https://github.com/peter279k/social-sync.git`.\n- Then download the composer.phar: `curl -sS https://getcomposer.org/installer | php`.\n- Then install the required packages: `php composer.phar install`.\n- Create the `api-key.ini` in this project root path.\n\n```ini\n[Facebook]\napp_id=\"facebook_id\"\napp_secret=\"facebook_secret\"\nuser_access_token=\"facebook_user_token\"\n[Twitter]\napi_key=\"api_key\"\n[Plurk]\nuser_name=\"user_name\"\nuser_password=\"password\"\nuser_id=\"user_id\"\n```\n\n- Complete the service building. Have fun!\n- P.S: The PHP program in `examples` folder just present the posting feed examples.\n- The social api lists references.\n\n\u003e - [Twitter API reference](https://stackoverflow.com/questions/12916539/simplest-php-example-for-retrieving-user-timeline-with-twitter-api-version-1-1/15314662#15314662)\n\u003e - [Facebook API reference](https://developers.facebook.com/docs/php/FacebookResponse/5.0.0)\n\u003e - [Plurk Bot sample code](https://gist.github.com/pingyen/53380) \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter279k%2Fsocial-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeter279k%2Fsocial-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter279k%2Fsocial-sync/lists"}