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 Sospitas · Oct 22, 2014 at 03:48 PM · androidiosfacebook

Facebook Unity SDK - iOS Login not persisting

I have the most recent Facebook SDK from the Unity app store (the beta version) and I am currently setting it up to do things such as invite players and send OpenGraph objects etc. This is all seemingly working fine on my Android device, logging in, getting a list of friends to select from etc. however when I am trying to use the exact same code on iOS, I am running in to problems. Instead of opening up the Facebook app to check for a currently logged in user, the web-app version of Facebook is loading over my app, asking the player to log in (even after they have logged in this way previously).

The code I am using is basically the code shown throughout the following page: Facebook Unity SDK Tutorials

Is there something different that needs doing in iOS that isn't required for Android?

Thanks, Sosp

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
Best Answer

Answer by Sospitas · Oct 23, 2014 at 12:13 PM

Okay, so I figured this one out myself after digging around for a while. The current latest version of the Facebook Unity SDK does not take into account multiple App ID's in the Facebook Settings menu. This meant that when building and selecting the 'append' option (to save all of the other settings in XCode), the App ID was not being reset to the newly selected version that I wanted. This led to Facebook being unable to find the App based on the ID, and therefore not using the Facebook App or Safari login flows and instead just using the Web version (which seemingly did nothing).

To fix this: - Build your project - Open XCode and in the file directory open Info.plist - Set FacebookAppID value to your target App ID (In Facebook->Edit Settings menu) - Open URL types -> Item0 -> URL Schemes - Set URL Schemes/Item 0 to "fb + your target App ID (In Facebook->Edit Settings menu)

This should now cause your app to use the Facebook App if it is installed

Comment
Add comment · 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

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

27 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Facebook - Is it possible to logout other active sessions? 0 Answers

Simple Unity3d Facebook Integration? 1 Answer

Free Facebook Plugins? 1 Answer

CloudBuild Facebook SDK issue not on device - issue with looking for .dll in Library folder 5 Answers

Facebook App ID issues (IOS and Android) 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