Coder Social home page Coder Social logo

ionic-facebook-oauth's Introduction

Facebook Oauth + PHP +MySql DB + AdMob in Ionic Framework

Download this example project from GitHub and run the following commands:

  1. Go to developers.facebook.com
  2. Create a new app
  3. Choose website from platfrom
  4. Put http://localhost/callback in callback uri
  5. Copy the client id

With the client id in hand, open www/js/app.js and find the following line (line no 89):

$cordovaOauth.facebook("XXX_FACEBOOK_APP_ID_XXX", ["email", "read_stream", "user_website", "user_location", "user_relationships"])

Replace "XXX_FACEBOOK_APP_ID_XXX" with Facebook Client Id that you obtained from facebook developer console.

  1. Now install WAMP and goto C:\wamp\www
  2. Copy the 3 PHP scripts from PHP folder in the project and paste into the C:\wamp\www directory
  3. Start the wamp server and open localhost/phpmyadmin in web browser
  4. Create a database named test
  5. Correct the corresponding database details in 3 PHP scripts present in C:\wamp\www

Run the following command in the project folder

$cordova platform add android
$cordova plugin add cordova-plugin-inappbrowser
$cordova plugin add cordova-plugin-whitelist
$cordova plugin add cordova-plugin-admobpro
$ionic run android

The above commands will add the Android build platform and install the required plugins.

Resources

Ionic Framework - http://www.ionicframework.com

AngularJS - http://www.angularjs.org

Apache Cordova - http://cordova.apache.org

ngCordova - http://www.ngcordova.com

Nic Raboy's Code Blog - https://blog.nraboy.com

ionic-facebook-oauth's People

Contributors

popoapp avatar

Stargazers

Otácio Barbosa avatar elShunior avatar Costin Moise avatar Anup Kumar Panwar avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.