{"id":18278748,"url":"https://github.com/handstandsam/exploringthefacebookapi","last_synced_at":"2026-07-03T05:33:27.798Z","repository":{"id":23280124,"uuid":"26638905","full_name":"handstandsam/ExploringTheFacebookAPI","owner":"handstandsam","description":null,"archived":false,"fork":false,"pushed_at":"2014-11-18T21:35:42.000Z","size":11343,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-05T08:42:17.419Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.youtube.com/watch?v=brgkRqYgVDs","language":"JavaScript","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/handstandsam.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}},"created_at":"2014-11-14T13:06:35.000Z","updated_at":"2016-05-09T03:08:47.000Z","dependencies_parsed_at":"2022-08-21T21:50:59.134Z","dependency_job_id":null,"html_url":"https://github.com/handstandsam/ExploringTheFacebookAPI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/handstandsam/ExploringTheFacebookAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handstandsam%2FExploringTheFacebookAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handstandsam%2FExploringTheFacebookAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handstandsam%2FExploringTheFacebookAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handstandsam%2FExploringTheFacebookAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/handstandsam","download_url":"https://codeload.github.com/handstandsam/ExploringTheFacebookAPI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handstandsam%2FExploringTheFacebookAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35074225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-03T02:00:05.635Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-05T12:25:56.137Z","updated_at":"2026-07-03T05:33:27.780Z","avatar_url":"https://github.com/handstandsam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ExploringTheFacebookAPI\n=======================\n\u003cstrong\u003eAuthor: Sam Edwards - @HandstandSam\u003c/strong\u003e\n\nThis is an example project to be used with a presentation for the API Craft RVA meetup on November 18th, 2014.\n\nLinks\n\u003cul\u003e\n\u003cli\u003eOnline Version of the example project: http://fbapi.htechlabs.com\u003c/li\u003e\n\u003cli\u003eMeetup Link: http://www.meetup.com/API-Craft-RVA/events/214759532/\u003c/li\u003e\n\u003cli\u003eFacebook Developers Page: https://developers.facebook.com/\u003c/li\u003e\n\u003cli\u003eFacebook API Explorer: https://developers.facebook.com/tools/explorer\u003c/li\u003e\n\u003c/ul\u003e\n\nLibraries Used:\n\u003cul\u003e\n\t\u003cli\u003eAngularJS 1.2.26 - https://angularjs.org/\u003c/li\u003e\n\t\u003cli\u003eBootstrap 3.3.1 - http://getbootstrap.com/\u003c/li\u003e\n\t\u003cli\u003eFacebook JS SDK - https://developers.facebook.com/docs/javascript\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003chr/\u003e\n\n\u003cstrong\u003eCreate a Facebook Application ID\u003c/strong\u003e\nhttps://developers.facebook.com/quickstarts/?platform=web\n\n\u003cstrong\u003eRedirect dev.com to your local machine to allow for development\u003c/strong\u003e\n\u003csmall\u003eYou can use any domain youwant, dev.com is what I chose.  \"localhost\" cannot be used, that's why we have to do this.\u003c/small\u003e\n\u003cpre\u003esudo /etc/hosts\n127.0.0.1\tdev.com\u003c/pre\u003e\n\n\u003chr/\u003e\n\n\u003cstrong\u003eInitialize Facebook JavaScript SDK\u003c/strong\u003e\n\u003cpre\u003e\n    window.fbAsyncInit = function () {\n        FB.init({\n            appId: '{YOUR_APP_ID}',\n            version: 'v2.2'\n        });\n    };\n\n    (function (d, s, id) {\n        var js, fjs = d.getElementsByTagName(s)[0];\n        if (d.getElementById(id)) {\n            return;\n        }\n        js = d.createElement(s);\n        js.id = id;\n        js.src = \"//connect.facebook.net/en_US/sdk.js\";\n        fjs.parentNode.insertBefore(js, fjs);\n    }(document, 'script', 'facebook-jssdk'));\n\u003c/pre\u003e\n\n\u003cstrong\u003eFacebook Login Call\u003c/strong\u003e\n\u003cpre\u003e\n\tFB.login(function(response) {\n\t\tconsole.log(response);\n\t\tif (response.authResponse) {\n\t\t\tconsole.log('Logged in.');\n\t\t\tvar accessToken = response.authResponse.accessToken;\n\t\t\tconsole.log(\"Access Token: \" + accessToken);\n\t\t} else {\n\t\t\tconsole.log('User cancelled login or did not fully authorize.');\n\t\t}\n\t}, {\n\t\tscope: \"public_profile,email\"\n\t\t//scope: \"public_profile,email,user_birthday,user_about_me,user_status,user_location,user_hometown,user_birthday,user_website\"\n\t});\n\u003c/pre\u003e\n\n\u003cstrong\u003eCurrent User\u003c/strong\u003e\n\u003cpre\u003e\n\tFB.api('/me', function(response) {\n\t\tconsole.log(response);\n\t\tvar fb_user = response;\n\t});\n\u003c/pre\u003e\n\n\u003cstrong\u003eCurrent Permissions for App\u003c/strong\u003e\n\u003cpre\u003e\n\tFB.api('/me/permissions', function(response) {\n\t\tconsole.log(response);\n\t\tvar fb_permissions = response;\n\t});\n\u003c/pre\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhandstandsam%2Fexploringthefacebookapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhandstandsam%2Fexploringthefacebookapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhandstandsam%2Fexploringthefacebookapi/lists"}