Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by spaunn · Apr 20, 2015 at 04:14 AM · facebookgoogle

How can I import a friends' player information into the game?

Hey guys, I'm working on a little project using both Google and Facebook's APIs. Google will be handling multiplayer, saves and In-App purchases while Facebook handles all the social aspects.

My issue here, since I can't use Facebook to save data, is that I need to be able to take player data of a Facebook friend, and import it into the game similar to how a farm game operates.

For example, the player invites their friend through the Facebook API, after it's been accepted and the friend has downloaded the game, the player is then able to visit their friends farm.

How do I access this kind of data? can I access this through Google's API by referencing Facebook data, or would I need another dedicated cloud server?

Hope this all makes sense, I found it quite hard working out how to word it xD

Comment
Add comment
10 |3000 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
0

Answer by yashpal · Apr 20, 2015 at 09:36 AM

hello @spaunn,

i think you want to do this.

the player invites their friend through the Facebook API, after it's been accepted and the friend has downloaded the game, the player is then able to visit their friends farm.

You can do this by facebookAPI, 1) you want to invite friend to game.

2) when friend accept the invitation it take to playtsore / appstore where friend can download app. (DeepLinking)

3) when friend open game you get some information about who send the invitation and downloaded game in (in deep linking methods).

ask freely if you have questions. Hope it helps

Comment
Add comment · Show 4 · Share
10 |3000 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 spaunn · Apr 20, 2015 at 12:39 PM 0
Share

I still don't understand how I get the player data from my friend so I can actually generate their 'farm' in my game :(

avatar image yashpal · Apr 21, 2015 at 05:24 AM 0
Share

hello @spaunn,

Sorry i can't understand your question properly.

Your main question is it possible to combine facebook friend api and google play service.

I don't find anything which can solve your problem. (please inform me if you find any solution.)

I think you need one dedicated server for that.

-You use facebook Official plugin. This one.

-Run demo scene named something like "interactive......".

-when you login you get one unique id of user. (which display at the bottom of demo scene.)

In facebook every user have its unique id.

so you need to keep database of this facebook unique id and email address of every person.

so when user send invitation to there friend. and if user's friend accept invitation than open app then you will find user facebook unique id and it's friend facbook unique id. in the deep linking.

so you will find out who send you invitation and from that you find out its email address via dedicated server.

and you find out who send you invitation.

i hope it more clear answer. ask freely if you have questions. Hope it helps

avatar image spaunn · Apr 22, 2015 at 03:04 PM 0
Share

I want the player to be able to visit a friends farm. how do I get that data?

It has nothing to do with getting google to work with facebook, I just want to be able to share data between friends when they are offline

avatar image yashpal · Apr 27, 2015 at 06:23 AM 0
Share

@spaunn, sorry for late replay,

I don't think you can share data offline.

you need to make one data string or class of farm and store it over web-server. so every one farm status is in web-server. when you get login you need to get your farm data and your friend farm data.

your friend farm data is use when you want to visit your friend's farm while offline.

i am sorry if i still not understand your question.

hope it helps

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.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Login to facebook, twitter, google with OAuth 2 Answers

Simple share text to Facebook and Google+ (Android, IOS) 0 Answers

How can I sign in using google. 3 Answers

WebGL - Facebook and Google+ Share 0 Answers

Facebook plugin problems 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges