I've tried building apps with Xcode and it has been a struggle, i then discovered unity and an entire world opened up to me. and then i released 3 games this year on the iOS apple store made in unity.
now I'm trying to build a game and this games main feature is to upload and view videos. let me call it what it is making an app with unity. why? because i know how to use unity, this is my tool.
so i headed to Facebook and download the latest SDK for unity and boy did it take me time to figure how it works. after weeks of struggle i found out that the Facebook SDK can not upload video, well at least not yet (i hope i can ask them if they could make it that the Facebook unity SDK can do everything that all the other sdk's can do, like their iOS sdk and android sdk).
the way i found out was when i submitted a bug report and asked a Facebook team member and they told me that it is not supported. i then went to check the references of the Facebook iOS sdk and compared it to the reference of the Facebook unity SDK and to my wonder the calls are not there.
so my question is how can i use Facebook sdk in unity the way that i want it to?
is there a method of using the Facebook iOS SDK in unity and not the Facebook unity SDK?
At the end of the day i would really like to push the app out on android as well hence why i added the android tag. so I'm sure if i can achieve it with either platform i can just do it for the other one as well.
please if anyone can share assistance it would be appreciated, I'm extremely serious to get this project completed i can't wait to share my idea with the world.
seems like I've confused myself. apparently one can do exactly what i want to do. The Facebook team member responded to my question I've included his exact reply for your convenience.
Related
I want to give the possibility to the players of my game, to publish to their Facebook feed images and videos stored on their device.
The Facebook SDK does not seem to provide this feature through FB.FeedShare. Only already hosted media can be referenced in the mediaSource field.
Several questions have been asked about this subject (1, 2, 3)
However, the Android SDK and iOS SDK does provide it. Isn't the Facebook SDK a simple "abstract layer" wrapping the native SDKs? Why all the native SDK features haven't been implemented?
I know an alternative solution would be to upload the media using the Graph API and reference from the FB.FeedShare function.
EDIT: As mentionned by #misorude, the publish_actions permission has been removed
TL;DR
Is it possible to create the Android and iOS plugins that would call the native functions used to share a media stored on the device of the users?
If so, do you know how is it possible to "reference" the native Facebook SDKs without bundling them into the plugins I will create? (Since they are already in the Unity Facebook SDK in my project).
EDIT: Seems like someone already tried to create a wrapper, but "it didn't play nice"
I am also open to other suggestions. My final goal is to let the user publish a video. I would love to use intents to open the Facebook app, but iOS does not have such feature.
Thanks in advance.
"Gameroom(windows)"
I'm trying to integrate our game with Facebook Gameroom. The first step is Login integration.
Seems, the official SDK does not support "Gameroom(windows)" Login.
Where can I find the unity SDK that supported "Gameroom(windows)" Login?
Has anyone integrated with Gameroom before?
Thanks.
I had the same question up until yesterday. I would direct you to this link: https://developers.facebook.com/docs/games/gameroom
You want to use at least Unity 5.6.2 and use the Facebook Gameroom (Windows Native) build included in Unity. Use the 7.10 SDK (choose it from the dropdown it'll say 'Facebook SDK 7.10.1') on the Build Settings screen.
The link that I gave is needed as once you have the build set up there's a lot of things that you need to do to make it work, and the link will help you through that. (On the page in the documentation, there's a link that will take you to the build and testing page - it's the second set of instructions).
I'm currently in the process of porting over a Mobile game to FB Gameroom, so I am going through it myself. Oh! and you'll want to have the 7.10.0 Facebook SDK (available from Facebook) as a .unitypackage file.
The reason for the unity package version is that you will seriously want the examples directory and scripts so that you can implement facebook's api. Do NOT install the entire package as that will blow everything up, just need the scripts and the scenes.
That should get you started. Also, a tech-tip... if you are using UNITY IAP, it will log into facebook on its own (to set up the codeless IAP stuff). I found that out AFTER I modified the examples to handle the login and initialization of the Facebook API.
Good Luck!!!
we are working on share functionality for our unity game using the Facebook Unity SDK.
We are using FB.Feed for our post and share additional links at the end of the post using the 'properties' parameter and sending a Dictionary.
This works nicely on Android and for the webplayer but nothing is shown when using the iOS version which has the exact same codebase.
This seems to be a bug since the same happens using the interactive console example.
Can anyone confirm?
Is there an official forum for the FB Unity SDK? The beta goup on facebook seems to be dead.....
Help very appreciated.
Simon
We are deprecating the properties functionality. Just so you know, for your specific use case the properties are unnecessary. We will automatically send users to the Google Play store when they click your game's link on Android and the iTunes store when they click it on iOS.
Hi i am new bee in Unity but i have 1 year experience in Xcode, I am doing an app in Unity for iPhone but getting bit confuse on how can i hook-up Xcode with Unity, I want to Facebook sharing, Twitter Sharing and also iOS native Email sharing(Using Mail Composer) in Unity but i don't get any help ful solution to do task in Unity, I only get Plugins which i need to Purchase first. So i want to do this task in Xcode it reduce and time and money and rest of work on Unity so is this possible that we can Communicate between Xcode and Unity? If Possible then kindly share some knowledge and links with me so that i can do this task ASAP.
Thanks in Advance.
You can start write your own plugin to complete the communication between Unity3D and iOS.
From iOS to Unity, You can just use UnitySendMessage, which is enough in most of time. You can also try to use a event and delegate in Unity Script to handle more complex situation.
From Unity to iOS, you need to implement plugin yourself. First of all, use a .cs file to declare the external method. And then implement the native code in a .mm file in Xcode and "extern C" them to the Unity. Then you can call the .cs method and get a native function called. You need a Unity Pro license to use the plugin feature.
For UnitySendMessage and Unity plugin, visit Unity Doc-Building Plugins for iOS. You can find an example in the doc called Bonjour Browser Sample. It is a very good starting point for you. If you have 1 year experience with Xcode, I think it will be easy for you.
For use delegate and event in Unity, visit Prime31's Unity Tip video.
Check out Niklas's free unity iOS plugin.
http://forum.unity3d.com/threads/122681-Free-facebook-Plugin-for-Unity-iOS
It doesn't work out of the box anymore, but with a few changes and updates you can get it working.
If you already have xCode experience then hopefully the extra work should be trivial since the Facebook SDK docs are pretty good.
HI..
i want to implement facebook in my iphone game .. i want when game is over there is a facebook connect button .. using which a player can share his score on his wall in facebook .. i have follow the way which is describe in this video { http://vimeo.com/3616452
}
but i am getting session not declare error ..
so please help out
This video is rather old. They use old facebook-iphone-sdk that is still working but Facebook recommend using new iOS SDK https://github.com/facebook/facebook-ios-sdk
It's a lot easier now. You can find sample project there and adopt it to you app.
I think you getting "session not declare" error because you didn't include facebook sdk header files in your project or Xcode couldn't find it if you SDK placed in another directory.
If you show us some code and better describe your problem it will be much easier to help you.