Features
Games
Add-ons
Docs
Pricing
Forums
Blog
Log in
Sign Up

Features

Games

Add-ons

Docs

Pricing

Support

Blog

Log in

Sign Up

  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Ideas
    • Articles
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by ZhengHo · Dec 06, 2018 at 06:49 PM ·

Playfab's FB login in the Corona SDK??

I would like to ask about the combination of Playfab and Corona.

Their information is very small. I don't know how to use it.

Playfab has LoginWithFacebook, and Corona has plugin.facebook.v4a.

I want to know is that I can use only the API provided by playfab to do this alone?

Because I can log in normally using plugin.facebook.v4a, but I can't log in using the playfab API.

And LoginWithGoogleAccount is also unable to appear login results.

Which means that Playfab's API can not be used alone??

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Jay Zuo · Dec 07, 2018 at 07:58 AM

I'm not familiar with Corona, but it should be similar with what in Getting Started with Facebook & Unity. This tutorial is for Unity and it used Facebook SDK for Unity. For Corona, you might use Facebook “v4a” plugin to login first. Then you can use facebook.getCurrentAccessToken() to get Facebook AccessToken. With this token, you can finally LoginWithFacebook. So you can't use only PlayFab's API to perform FB login.

LoginWithGoogleAccount is similar, here you will need to get a ServerAuthCode instead of the AccessToken used in Facebook. For more info, you can refer to PlayFab Sign-In With Google Play Games in Unity.

Comment

People who like this

0 Show 4 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ZhengHo · Dec 07, 2018 at 08:12 AM 0
Share

Thank you for your answer, I have generally understood.

I also want to ask a question.

After logging in with the v4a plugin and logging in with LoginWithFacebook, will it cause 2 logins?

For example: Will players be deducted repeatedly when they buy?

Will this be the case?

Thank you.

avatar image Jay Zuo ZhengHo · Dec 07, 2018 at 08:22 AM 1
Share

The first login is log into Facebook to get AccessToken so that you can use it in PlayFab's LoginWithFacebook, PlayFab need this token to get player's Facebook account info and link it into the player's PlayFab account. In PlayFab, there will only be one login. Players won't be deducted repeatedly when they buy.

avatar image ZhengHo · Dec 07, 2018 at 06:47 PM 0
Share

Thank you for your answer, I have generally understood.

I also want to ask a question.

After logging in with the v4a plugin and logging in with LoginWithFacebook, will it cause 2 logins?

For example: Will players be deducted repeatedly when they buy?

Will this be the case?

Thank you.

avatar image Brendan ♦♦ ZhengHo · Dec 07, 2018 at 07:30 PM 0
Share

The Corona v4a plugin logs the user into Facebook. You then get a token from Facebook, to log into PlayFab. So yes, two logins, because you're logging into two completely separate services - one login each. But the login to PlayFab would be invisible to the user, since you already have the Facebook token at that point.

Purchasing is completely unrelated to login, apart from the fact that you need a valid session ticket to make the purchase call.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • Follow this Question

    Answers Answers and Comments

    3 People are following this question.

    avatar image avatar image avatar image

    Tickets

    Need help with a confidential issue? We've got your back!

  • Create Ticket
  • View Open Tickets
  • Stay up-to-date with the latest from PlayFab:  
    Sign up for newsletter
    Engineers
    • Documentation
    • Tutorials
    • API Reference
    • SDKs
    • Usage Limits
    PLAYFAB
    • Features
    • Games
    • Add-ons
    • Pricing
    Support
    • Forums
    • Videos
    • File a Ticket
    • Service Health
    • Blog
    About
    • About
    • Jobs
    • Contact
    • Press Room
    • Privacy Policy
    • Terms of Service
    • Acceptable Use
    • Style Guide
     
     
    Sign Up

    ©2017 PlayFab, Inc.

    ©2016 PlayFab, Inc. All rights reserved. PlayFab® is a registered trademark of PlayFab, Inc. | Privacy | Terms | Acceptable Use
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Post an idea
    • Create an article
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Ideas
    • Articles
    • Users
    • Badges