Well this is general question, what I want that If anyone login on my using Google-Auth/Email-Password login and I can gets it Facebook profile info's too? Is these steps are correct:
- Login with google and insert the entry in Firebase.
- On Profile Edit there is button named "Get Your Facebook Data".
- On clicking button with the help of FBSDKLoginManager I connect with user fb's profile and make FBSDKGraphRequest.
- After getting result save it to database.
Suggest any other way if its possible?!
Here is Working code of Xcode 8.3 along with Swift 3.1 :
Follow these steps to get Facebook data :-
Step 1:
Step 2: Conforms delegate .
Step 3: Login Button IBAction Method .
//Facebook Login Action
Step 4: Get Facebook Data following way .
Feel free to comment on this , Hope it solve your issue. Thanks