Phonegap facebook, html5 video, iAds issues - facebook

I'm trying to build android+iOS application via phonegap build API. I found that that this api has some limitations, but I want to make sure...
1) Implementation Facebook features to phonegap application is possible only by phonegap plugin, which is not able to add via build API.
2) iAds aren't also supported. I found some plugin which can handle this, but as in first point, it is not possible to add plugins via phonegap build API.
3) Playing video using HTML5 video tag doesn't work if operation system of device doesn't have installed needed codecs. And there is no other way how to be sure that some type of video will be playable on most androis/iOS devices.
...so when I want to build applications via phonegap API, I have to forget to use facebook, iAds and video(on all devices) ?
Thank you.

For your first question: in the case of facebook some facebook plugins exist, you may want to look here:
http://www.mosacrea.com/how-to-post-to-the-facebook-wall-in-an-iphone-app-with-phonegap-facebook-connect-and-childbrother-plugin/ it uses the ChildBrowser plugin..
or here:
http://eisabainyo.net/weblog/2011/06/25/how-to-post-on-facebook-wall-on-iphone-and-android-using-phonegap-plugins/ same thing but with a slightly different approach.
hope it helps...

Related

Creating native plugins to implement missing functions of the official Unity Facebook SDK

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.

How to start Gameroom login integratoin for Unity games?

"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!!!

Can I use the JavaScript facebook SDK for phonegap apps?

I am not sure whether my question is appropriate or not.
I am integrating facebook for the first time and also for the for first my app is multi-platform.
I am integrating facebook in my app for iphone and android.My question are below:
1)If i am doing it with plugin i have to do it separately for both iPhone and Android. Is there any way to integrate Facebook for both in a single effort for eg by using Javascript SDK
2)If yes what it is? and if possible any sample.
Thanks in advance
You should use phonegap-plugin-facebook-connect. It works on both iOS and Android and integrates great with iOS6 bulid in Facebook functionality.
The plugin provides a patched version of the Facebook JS API.

Can I use third party PhoneGap plugin on a web page using iOS Safari browser?

I am developing an application targeted only for iOS device(for now) using PhoneGap library and HTML5. This application is going to be only a web page accessed through iOS Safari browser. I am going to use certain features like accessing accelerometer, geolocation, contacts etc of iOS device using PhoneGap library.
Will I get access to all these features without installing anything on the device.
I want to understand how does PhoneGap get access to native features
of the device by just using JavaScript only?
I see there are several useful plugins written for PhoneGap library.
Can I simply use those plugins(js files) into my page without
installing anything on the device? E.g PhoneGap ChildBrowser plugin?
Will I get access to all these features without installing anything on the device.
You will have to build as a native ios app and install it to the device.
I want to understand how does PhoneGap get access to native features of the device by just using JavaScript only?
Phonegap provides a Javascript interface to access hardware features which are actually Objective-C functions. If you look at Phonegap source you'll see a lot of Objective-C code. So it's not only Javascript.
I see there are several useful plugins written for PhoneGap library. Can I simply use those plugins(js files) into my page without installing anything on the device? E.g PhoneGap ChildBrowser plugin?
No. They have to be inside an iOS app to be able to work.
It seems like what your after is a way to access the features of an APP only through the browser.
You can access some things using HTML5 e.g.:
Geo location http://html5demos.com/geo
Accelerometer http://menscher.com/teaching/woaa/examples/html5_accelerometer.html
Video Embedding http://www.w3schools.com/html5/html5_video.asp

is there any single library for twitter sharing in ios4 and ios 5

I need to share one video url getting from my server in twitter.
And my app must be compatible for both ios 4.0 and ios 5.0.
I know that there is twitter+oauth library for ios 4.0 and twitter inbuilt library for ios 5.0. And my functionality is twitter library need to ask user credentials only once for twitter authentication and need to post that video url in background with out asking user permission.
From the second time onwards video must posted in background.
As per my knowledge we have different libraries we need to use but is there any solution that do implemant my task with one library.
Please help me.
For a beautiful implementation, check out DETweetComposeViewController.
It will provide you with a UI that looks almost identical to what iOS5 users now are growing accustomed to. The great point is, it works on iOS4 and iOS5 flawlessly.
GetShareKit was a basic library created by Nate Weiner that's now outdated. If you check it's GitHub source, the last commit was sometime in 2010. This version is buggy and has about 20+ compile warnings. this uses an older version of the Facebook and Twitter sharing mechanisms that are now deprecated and also, buggy. Clicking Twitter's "Share", for eg, won't dismiss the sharing dialog.
So, a bunch of developers forked off the original library and now maintain what's called ShareKit 2.0 SDK. If you check the wiki, you'll learn that all new services like Foursquare, LinkedIn, InstaPaper, EverNote have been added to this new version. Happy Coding!