Clothingapp
GithubDemoYoutube
  • CLOTHING APP
  • Technologies
  • CLOTHING APP
    • Zip File Structure
    • Project Requirement
    • App Structure
    • Installation Guide
    • API Config
    • Push Notifications
    • Run in Emulator
    • Social API
  • PAYMENT
    • Stripe
  • THANK YOU
    • Source and Credits
    • Thank You
Powered by GitBook
On this page
  • Create Facebook App ID and setup of user Login
  • CheckSingle Sign On.
  1. CLOTHING APP

Social API

To create and setup for user login.

PreviousRun in EmulatorNextStripe

Last updated 6 years ago

Create Facebook App ID and setup of user Login

To use the FB plugin, you first have to create a new Facebook App with your Facebook developer portal at https://developers.facebook.com/apps.

Retrieve the App ID and App Name

Then type in the following command in your Terminal, where APP_ID and APP_NAME are the values from the Facebook Developer portal .

You can replace APP_NAME and APP_ID in config.xml file.

Now you'll need to add the native platforms you'll be using to your app in the Facebook Developer portal under your app's Settings:

Click 'Add Platform'

You need to copy your id, You are free to keep any id that unique.

CheckSingle Sign On.

Android Install

Add platform android

Set your Google Play Package Name. You can find your name in your platforms/android/AndroidManifest.xml file.

Check Single Sign On

Set the Class Name to com.facebook.FacebookActivity

Generate your own [Key Hash](https://ionicthemes.com/tutorials/about/ionic2-facebook-login).  please follow that tutorial how to create key Hash.

Now you need to open your project's file, found in the root directory of your project.

<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" package="com.ionicframework.ionic2fblogin864493" xmlns:android="[[[[);

If you have follow all those setup properly, you will accomplish your mission :). You may also follow these article that might help you and .

config.xml
http://schemas.android.com/apk/res/android"&gt](http://schemas.android.com/apk/res/android"&gt](http://schemas.android.com/apk/res/android"&gt](http://schemas.android.com/apk/res/android"&gt)](http://schemas.android.com/apk/res/android"&gt](http://schemas.android.com/apk/res/android"&gt](http://schemas.android.com/apk/res/android"&gt](http://schemas.android.com/apk/res/android"&gt))](http://schemas.android.com/apk/res/android"&gt](http://schemas.android.com/apk/res/android"&gt](http://schemas.android.com/apk/res/android"&gt](http://schemas.android.com/apk/res/android"&gt)](http://schemas.android.com/apk/res/android"&gt](http://schemas.android.com/apk/res/android"&gt](http://schemas.android.com/apk/res/android"&gt](http://schemas.android.com/apk/res/android"&gt)))\
ionic facebook native
ionic facebook native 2