Meteor + Phonegap - facebook

I'm beginning to develop a Meteor App using Phonegap, however I've come to a stumbling block on GeoLocation and Facebook Oauth. How do I extract native GeoLocation information from PhoneGap and transfer that to Meteor, and how do I create a native Facebook Login from the app as well?

I have made it working,
you just need the www folder of cordova bundle app,
and then create a hello world cordova app and replace your www folder in it.
Add plugins you need manually,
Here is my app
https://play.google.com/store/apps/details?id=com.youiest.tapmatrix
https://itunes.apple.com/us/app/tapmate/id774935608?mt=8
but yes, I did not succeeded in create facebook native login with the meteor official way.

I have been able to make facebook native login work.
You just need to add official cordova plugin for facebook and configure it in mobile-config.js
In case of trouble, please follow tutorial here

Related

What is the best solution for facebook login in cordova / web / hybrid apps?

I would like to have a facebook authorization and facebook shares in my cordova app. So I need a plugin / solution for this case.
I found cordova-plugin-facebook4 but it didn't have updates for a long time and doesn't work properly with last Cordova/Facebook SDK.
I also have tried to use OpenFB but it has two main problems: it also has some troubles and works via JS SDK which mean my app asks a user for a password while login even if there is a facebook app on the smartphone.
I use poor JS and Jquery (not ionic, not Angular, etc).
I want to use it for Android and iOS both.
I want to have a native login window (not the web based).
Could you recommend something for me and community?
Have you tried this one? Looks like the best:
https://github.com/Wizcorp/phonegap-facebook-plugin
Also for sharing, I use this, and works like a charm:
https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin

How can I implement facebook and google+ login using ionic framework for hybrid mobile development?

I am working on ionic framework. I have to implement login sign-up feature with Facebook and google+ in my hybrid mobile app. How can add this login & sign-up feature? Does it allows me to login via fb or google+ inside a hybrid mobile app?
I recently had to build an app implementing Facebook's OAuth, it's pretty straightforward if you're willing to use ngCordova
Add in the ngcordova library to your ionic project.
bower install ngCordova
Include ngCordova to your index.html file before cordova.js
Make sure you inject ngCordova to your angular module (usually in app.js)
angular.module('app', ['ngCordova'])
To use multiple OAuth providers supported by ngCordova, you need to get cordova's inappbrowser plugin, add that into the mix
cordova plugin add https://github.com/apache/cordova-plugin-inappbrowser
To use it in controllers check out http://ngcordova.com/docs/plugins/oauth/
Note: The installation documented in ngCordova's oauth plugin page usually doesn't works, and when using the app in an emulator or a device it returns "Could not find InAppBrowser plugin" for every provider.
The workaround is pretty simple indeed, open up ng-cordova.js residing in your www/lib/ngCordova/dist directory and with a quick find and replace
Find:
cordovaMetadata.hasOwnProperty("org.apache.cordova.inappbrowser") === true
Replace With:
cordovaMetadata.hasOwnProperty("cordova-plugin-inappbrowser") === true || cordovaMetadata.hasOwnProperty("org.apache.cordova.inappbrowser") === true`
That should give you a headstart with the development process, the more you know!

NPM - Cordova and logging into Facebook

I'm wondering what the best way to generate a Facebook login process would be if I created a Cordova/phonegap project using npm.
A bunch of the Phonegap Facebook plugins appear to be broken or outdated. I've spent probably 3-4 hours trying to create a working 'login' example that doesn't require using a URL (since the Phonegap/Cordova application will be an 'app', not a website).
Basically, is there any easy way to receive an access_token or any useful 'token' in Cordova/Phonegap? Again, the app is not a 'Web' App, so there will be no URLs to point to.
Thanks, guys (and gals)!
Have a look at https://github.com/Wizcorp/phonegap-facebook-plugin You'll have to install it yourself to your generated project.

Integrate twitter and facebook with phonegap using only javascript

Is there possibility to integrate twitter and facebook with phonegap using only javascript? The reason behind to use javascript is application can run on different platforms i-e it can run on ios,blackberry,symbian,android and webos.
need an idea ....
thanks in advance
I think you need to use this social sharing cordova plugin.
https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin

Facebook Login with WebWorks

I have been trying for some days now to login to facebook via a webworks application, I undesrtand that the FB.login can't work beacuse of a popup, and the oauth login has to go through a web server, I am currently trying to implement this plugin
https://github.com/rsweny/ChildBrowser-plugin-for-BlackBerry
but the readme file isn't really clear about how to implement, I understand that you need an ext directory in the app folder but not sure if I need to add something to the config.xml file or to any other.
Please help!
Thanks,
Jose.
I created some examples of how to integrate your app with Facebook, Twitter, and foursquare via OAuth. They're targeted for BlackBerry 10, but should work on earlier versions as well.
Note: I'll be updating them (for BlackBerry 10) to make use of the new ChildBrowser API.
OAuth Samples are available on GitHub # https://github.com/ctetreault/BB10-WebWorks-Samples