• 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
Question by thejohnnyzero · Nov 16, 2016 at 07:25 AM · sdkloginfb

Facebook Login Invalid App Id : 0

Hello, I have been stuck in a loop for a few days now. When I test my app in Unity the Facebook login works fine. I have added it to the Play Store and downloaded to test and I get invalid app id 0 when attempting to log in on my devices. I have checked and rechecked code. I ran a Debug.Log at Init and it shows the correct app id when initializing. I have gone through every facebook setting I can find.

I compiled the examples in the sdk and ran them on a tablet and got the same result. I have no idea where to go from here.

Comment

People who like this

0 Show 1
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 mgrogin · Jan 19, 2017 at 11:03 AM 0
Share

DId you solve this @thejohnnyzero ?

1 Reply

  • Sort: 
avatar image

Answer by benzsuankularb · Jul 03, 2017 at 09:52 AM

Problem is in the Facebook's setting window, It doesn't pass any parameters during their init.

If you debug in the logcat during app start you will found app id was 0.

There're 2 overload method for FB.Init()

Use another one to pass your app id manually.

Done. WT* Facebook. Give my 3 days back.

Comment
Rodolfo-Rubens

People who like this

1 Show 1 · 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 Rodolfo-Rubens · Aug 23, 2020 at 11:30 PM 0
Share

Thanks a bunch dude, that did the trick! I'm so pissed right now, I'm also 3 days trying to solve those stuff, wtf those engineers that is working on gpgs and facebook plugins have in their freaking minds. I'm just trying to link chilliconnect accounts to gpgs or facebook but absolutely nothing seems to work...

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta on June 13. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Facebook SDK login problem on Android 0 Answers

Facebook Login and Logout problem 1 Answer

How to get FB SDK accesToken for page ? 0 Answers

How to get a public profile permission facebook sdk 0 Answers

about line login sdk for unity3d 0 Answers


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