{"id":18403660,"url":"https://github.com/nraboy/ng-cordova-facebook-example","last_synced_at":"2025-08-30T09:13:32.149Z","repository":{"id":23154569,"uuid":"26510037","full_name":"nraboy/ng-cordova-facebook-example","owner":"nraboy","description":"Ionic Framework ngCordova Oauth Example for Facebook","archived":false,"fork":false,"pushed_at":"2015-09-16T13:37:14.000Z","size":2415,"stargazers_count":104,"open_issues_count":3,"forks_count":77,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-07T07:36:48.971Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nraboy.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-11T23:31:36.000Z","updated_at":"2024-01-17T15:59:27.000Z","dependencies_parsed_at":"2022-08-19T22:02:18.114Z","dependency_job_id":null,"html_url":"https://github.com/nraboy/ng-cordova-facebook-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nraboy/ng-cordova-facebook-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nraboy%2Fng-cordova-facebook-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nraboy%2Fng-cordova-facebook-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nraboy%2Fng-cordova-facebook-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nraboy%2Fng-cordova-facebook-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nraboy","download_url":"https://codeload.github.com/nraboy/ng-cordova-facebook-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nraboy%2Fng-cordova-facebook-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272828780,"owners_count":25000084,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"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-06T02:47:48.832Z","updated_at":"2025-08-30T09:13:32.128Z","avatar_url":"https://github.com/nraboy.png","language":"JavaScript","funding_links":[],"categories":["And A Bunch More! (I am in the process of sorting these)"],"sub_categories":[],"readme":"Facebook Oauth Example For Ionic Framework\n==============================\n\nThis example will demonstrate how to use ngCordova to authenticate with Facebook and retrieve\nan access token for use with the Facebook REST API.\n\n\nRequirements\n-------------\n\n* Apache Cordova 3.5+\n* [Apache Cordova InAppBrowser Plugin](http://cordova.apache.org/docs/en/3.0.0/cordova_inappbrowser_inappbrowser.md.html)\n* [Apache Cordova White-list Plugin](https://github.com/apache/cordova-plugin-whitelist)\n* [ngCordova](http://www.ngcordova.com)\n\n\nConfiguration\n-------------\n\nDownload this example project from GitHub and run the following commands:\n\n    $ ionic platform add android\n    $ cordova plugin add org.apache.cordova.inappbrowser\n    $ cordova plugin add cordova-plugin-whitelist\n\nThe above commands will add the Android build platform and install the required Apache InAppBrowser plugin.\n\nThis example application requires you to have your own Facebook application registered with Facebook.com.  Doing so\nwill give you a unique client id that can be included into your project.  When registering your application with Facebook,\nmake sure to set the callback uri to **http://localhost/callback**, otherwise ngCordova will not function.\n\nWith the client id in hand, open **www/js/app.js** and find the following line:\n\n    $cordovaOauth.facebook(\"CLIENT_ID_HERE\", [\"email\", \"read_stream\", \"user_website\", \"user_location\", \"user_relationships\"])\n\nYou will want to replace **CLIENT_ID_HERE** with the official key.\n\n\nUsage\n-------------\n\nWith this example project configured on your computer, run the following from the Terminal or command prompt:\n\n    $ ionic build android\n\nInstall the application binary to your device or simulator.\n\nThe application is currently composed of three parts and makes use of two of the official Facebook RESTful APIs.\n\n1. Oauth sign in\n2. Basic profile (GET /me)\n3. Basic stream (GET /me/feed)\n\nYou will be required to sign into the application using your own Facebook username and password.  Once logged in, you can\nview very basic information found in your profile or navigate to your stream.  The stream will show posts with a comment and\nlike count.\n\n\nVersion History\n-------------\n\n0.0.1\n\n* Add: oauth sign in\n* Add: view profile\n* Add: view feed of recent entries\n\n\nHave a question or found a bug (compliments work too)?\n-------------\n\nTweet me on Twitter - [@nraboy](https://www.twitter.com/nraboy)\n\n\nResources\n-------------\n\nIonic Framework - [http://www.ionicframework.com](http://www.ionicframework.com)\n\nAngularJS - [http://www.angularjs.org](http://www.angularjs.org)\n\nApache Cordova - [http://cordova.apache.org](http://cordova.apache.org)\n\nngCordova - [http://www.ngcordova.com](http://www.ngcordova.com)\n\nNic Raboy's Code Blog - [https://blog.nraboy.com](https://blog.nraboy.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnraboy%2Fng-cordova-facebook-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnraboy%2Fng-cordova-facebook-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnraboy%2Fng-cordova-facebook-example/lists"}