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
3
Question by codeZero · Apr 08, 2011 at 01:21 AM · facebookconnect

Facebook Connect for Android with Unity3D?

Hi, im want to make a facebook connect and Twitter using unity for android where i can post my score into the wall and twit. It was easy making it for iPhone but for android i had no idea. Any help?

Comment
Add comment · Show 5
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 Justin Warner · Apr 08, 2011 at 02:10 AM 0
Share

http://answers.unity3d.com/questions/18980/android-with-facebook $$anonymous$$ight help? I'd expect you can use the WWW to do something... But I'd also think you'd have to do something with Facebook and Android, their coding wise, not all Unity... Good luck though.

avatar image codeZero · Apr 26, 2011 at 02:32 AM 0
Share

i cant find the answer. it was easy for iPhone becoz i can access the XCode. but for android it directly build as apk file.

avatar image Henrique Vilela · May 03, 2011 at 08:44 PM 0
Share

If you find an answer, please let me know henrique.vilela@gmail.com

avatar image codeZero · Jun 07, 2011 at 06:22 AM 0
Share

Already find the solutions. Thanks for the help. the solution can be find here http://unity3d.com/support/documentation/$$anonymous$$anual/Android-Integrating%20Unity%20With%20Eclipse.html

avatar image hardik@android · Feb 15, 2013 at 09:49 AM 0
Share

How you solve this ? please share it..

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by handsomePATT · May 06, 2011 at 07:17 AM

you need to write java code and call it from in unity. its very complicated and has been giving me a headache the last couple days lol.

Comment
Add comment · Show 5 · 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 codeZero · May 09, 2011 at 06:22 AM 0
Share

Can you give me an example how you solve this. I also do the same things for iPhone. Call XCode from Unity and it was easy because i can access the xCode. But for Android after i build the code it will build as final product .apk.

avatar image codeZero · Jun 07, 2011 at 06:22 AM 0
Share

Already find the solutions. Thanks for the help.

avatar image codeZero · Jul 06, 2011 at 03:06 AM 0
Share

Already find the solutions. Thanks for the help. the solution can be find here http://unity3d.com/support/documentation/$$anonymous$$anual/Android-Integrating%20Unity%20With%20Eclipse.html

avatar image TomHunt · Aug 05, 2011 at 10:04 PM 0
Share

in other news, i found a million dollars. it was really hard to find, but wow, isn't it great! don't you wish you had some?

avatar image hirenkacha · Oct 19, 2012 at 07:32 AM 0
Share

@codeZero given link shows page not found. Can you provide some help?

avatar image
0

Answer by TomHunt · Aug 05, 2011 at 10:56 PM

1) git the Facebook Javascript SDK for Android to somewhere other than your Unity project: git clone git://github.com/facebook/facebook-android-sdk.git

2) Add a build.xml file to the root folder of the Facebook SDK:

 <project name="myFBPlugin" default="dist" basedir=".">
  <description>Facebook SDK</description>
  <property name="src" location="src" />
  <property name="bin" location="bin" />
  
  <target name="jar">
   <jar destfile="myFBPlugin.jar" basedir="bin/">
    <include name="com/**" />
   </jar>
  </target>
 </project>

3) Run "ant jar" on this project to compile the jar file

4) Get IKVM from here: http://www.ikvm.net/ ; install it; add to your PATH

5) Run "ikvmc myFBPlugin.jar -target:library" to get myFBPlugin.dll. It should be somewhere around 22-24k, depending on how you count your k

6) Drop myFBPlugin.dll, along with all the DLLs that come with IKVM into your Unity project assets folder (not the plugins folder)

7) Create a C# script in your Unity project using the facebook SDK to create accessors

 using UnityEngine;
 using com.facebook.android;

8) Integrate Facebook into your Unity Android app!

Comment
Add comment · 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 WiLLyRS · Aug 01, 2012 at 01:17 PM 0
Share

It's like an year old but I'm actually interested! So.. I've downloaded the fb sdk but the third point gave me the error BUILD FAILED, mydir\bin does not exist! in fact, there's no bin folder in my fb sdk... what should i do?

avatar image
0

Answer by CodeZero2 · Apr 24, 2013 at 08:36 AM

Sorry for the late reply, i already left unity a long time ago. Maybe this link can help:

http://answers.unity3d.com/questions/173101/how-to-connect-unity-3d-to-eclips-android.html

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

6 People are following this question.

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

Related Questions

Unity Facebook connect Iphone vs Web 0 Answers

A node in a childnode? 1 Answer

Facebook/Gmail/Twitter Connection with Unity3D 1 Answer

Unity Facebook SDK For Android Crashes when Logged in 1 Answer

Unity and Facebook SDK managing Score System 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