I have integrated facebook sdk to my unity game for android and ios. On both platform it works .
But now i turned my game to run in web player. but unfortunately i am not unable to login in facebook. I read documentation written in facebook.
https://developers.facebook.com/docs/unity/reference/3/CUI
For that i need canvas binary url. but i dont understand which url should i write? i want steps to make my web game to work with facebook sdk.
If i am going wrong then also let me know guys.. :)).
Thanks in advance..
For webplayer, you will be placing the yourgame.unity3d, yourgame.html file and other game related files on some kind of a webserver. The Unity Binary Url is that address where you will be placing your .unity3d file.
For testing purpose, you can have a local webserver like Apache and host the file there and then put something like http://localhost/yourgamefolder/yourgame.unity3d
and later you can replace that with the place where your game will be hosted.
Hope that helps,
Jitesh
Related
It is possible to connect the web sdk of agora.io, and get the video sources using Unity?? i need a client side with a simple browser Link for my end users to log in a channel and publish a stream, but then i need the vide in Unity to process video and develop an interactive experience.
Is this possible?
Thanks!
Yes, you can! As long as the web app and Unity app share the same app id and the channel name, you are good to go. In Unity, make sure you call this method to have the best compatibility:
EnableWebSdkInteroperability():
"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!!!
I want to develop a web app using html5, js. One of the feature is to launch device Camera and record video, take a picture and access photo album. Is it possible to access via web app if i develop? I saw in the forums that, it is saying not possible in some places and it is possible in some places. I would like to know, is it really possible to access directly camera and album etc. ?
Please suggest!
Thank you!
It's not possible to access phone camera using Web app, as the "Web APP" typically runs in the browser of device.
Though there are some frameworks (like Phonegap) allows you to embedd your web app into native container. With this approach and added libraries from such framework you can access some of those native API's and Device Hardware.
One Possible solution is,
Create one app and distribute it using app store
using your webapp, you can connect to above app using url-scheme
http://code.google.com/p/iphone-photo-picker/
go to above link, where you can find complete code for it.
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.
I am writing an app for iphone to go along site my website which tracks the location of the user. Can anyone give me any pointers on where to begin. I am very good with mysql and php etc but I am a novice with iphone apps.
The coordinates from the app need to be able to upload to my api which I have set up.
Thanks
What you probably want to do is create a simple app that can run in the background.
http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html
During background execution you cannot do anything really too much with the network so I suggest logging it using CoreData and then on resume/startup to send an HTTP post to a PHP page that logs it into your DB?
You might want to check out the HTML5 geolocation API. Also reading "Building iPhone Apps with HTML, CSS, and JavaScript" is recommended. I read the same book for Android and was very pleased. Building your app in HTML5/CSS/JS will also mean that it will probably work on other platforms.