At the risk of having -1s rain down on me for this question, I'm going to ask anyway. I am playing with PhoneGap, and for my application, user accounts are optional, but recommended. I don't have any web experience, so I don't know the most secure way to deal with stuff like this.
I can think of three options:
Facebook login
Google login
Roll my own
From what I've read online, the Facebook plugin for PhoneGap is only for "facebook apps", which my app is not. Regarding Google, everything points to using OAuth, which I am entirely unfamiliar with. So that seems to leave #3 as the only other option.
If the masters of PhoneGap apps here believe #3 is the way to go, would you be able to recommend any references? I have been looking all over and have come up short. Ok, correction, I did find one reference so far, but more is better!
I know this is late, but if you ever decide to go with option 3, you might want to try Parse.com (which also supports Facebook logins). I've successfully used it with PhoneGap, and there's a tutorial by Raymond Camden that may help you get started.
Related
Sign In with google through Playfab doesn't seem to work anymore after their (Google) Unity-plugin Update.
Playfab's Tutorial:
(https://learn.microsoft.com/en-us/gaming/playfab/features/authentication/platform-specific-authentication/google-sign-in-unity).
The tutorials Playfab provided uses classes which doesn't exist anymore like
"PlayGamesClientConfiguration" Class.
The login With google function provided from Playfab plug-in needs ServerAuthCode as an arrgument, which used to be got from this function "PlayGamesPlatform.Instance.GetServerAuthCode()" which doesn't exist anymore.
So, do you have an idea how to do it given that their tutorials (Playfab login with google in Unity) is obselete now?
I did the implementation and is working fine, but I used this package, not the latest one, is a previous version: https://github.com/playgameservices/play-games-plugin-for-unity/tree/v10/current-build
The Unity Package that appear in the Microsoft documentation have a lot of changes that create conflict with the tutorial.
For me is working for both platforms Android and iOS, if you have any problems, let me know.
I met Playfab years ago, when I was looking for a multiplayer service that would allow me to provide as many features as possible to my game such as rankings, data cloud saves, authentication, etc.
After a while I chose to use PUN 2 together with Firebase instead.
PUN 2 is a multiplayer service, which is now not the subject of the question.
I would recommend that you study Firebase, because it has tons of very powerful services, many for free or at a fraction of the cost, and with much greater fame and support than Playfab from what I have seen.
In summary, clear Playfab for authentication and use Firebase Auth. You can include sign in with Google, Apple, Microsoft, GitHub, email and password, anonymous etc.
Then it has an efficient password reset and email verification system.
I know if you have a project up and running it can be tedious to switch plugins, but Firebase has so many benefits that I think it's your best bet.
if you think my answer helped you, you can mark it as accepted. I would very much appreciate it :)
Right, I just feel the need to get this off my chest before I explode.
I have made an app using phonegap which actually works very smooth as it's using SVG and very simple but I feel this could be a very addictive little game. the only thing that is letting it down is that I want the user to be able to share their score on Facebook.
Facebook Connect plugin for Phonegap is the worst pile of crap I have ever come across. This is the millionth time I have come back to an Idea, thinking this plugin would have over time (I'm talking years) would have a simple step by step clear set of instructions on how to install but I have NEVER been able to get this working. Before anyone comments on "well why dont you post the errors" theres no point, every time it's a different problem, everyone on the internet cannot get this thing working it's pointless so please, I beg of you can you not post "there is a plugin which can do this easily", it CANT!!
Right, now my rant is over... I have come across this little plugin https://github.com/ccoenraets/OpenFB which, on the face of things does what it says on the tin. My only problem is, (again no clear documentation anywhere on the web for setting up a Facebook app for someone who has never done it before) I dont know what platform to add and what settings to set.
Can anyone state, for a Phonegap application making HTTP requests to the Graph API, what the following should be:
Platform
App Domain
The Platform Basic Settings
If anyone can help it would be very much appreciated
Regards
I am using OpenFB successfully (almost..)
You don't need any special permissions for android application defined in facebook application. Just copy openfb.js library and look at example code.
EDIT: actually I had small erorr in logic which caused me trouble, it wasn't openfb's error.
I've been researching the latest ways to integrate Twitter into my app and it appears the best (most painless) approach is to use the MGTwitterEngine, and the best tutorial I could find to implement this is a 3-part series. If all I need to do is allow the user to login to their twitter account and post a single tweet that's always the same, is there an easier way to do that than following the tutorial I linked to?
Thanks so much for your wisdom. If the alternatives aren't much easier, no problem, I'm not so lazy that I can't follow a tutorial, I was just wondering if there's a quicker way that I didn't see.
Create a button that opens a UIWebView when clicked. Build the URL using details here: http://twitter.com/about/resources/tweetbutton. Simple - about 10 lines of code.
I'm a big fan of st3fan's (Stefan Arentz) https://github.com/st3fan/iphone-twitter project. It's very easy to integrate and includes whole views that you can just use, easily customizable too.
Plan your Twitter implementation ahead - with an iPhone project you will want to use xAuth authentication which does not require a round trip to the web browser.* You have to first register your app and then request permission for your application to use this method. Check the Twitter developer pages for more details.
*or not. But I hate leaving the app to post tweets.
This just saves time.
Since I already have a web applciation.
I can just stick it inside a webview.
The question is: Does it turn off many users? How many users will be disgusted that the entire iPhone app is written in WebView?
I think it's pretty safe to say that most iPhone users are expecting apps to use the power of the iPhone, not just be a portal to a mobile website.
Think about facebook mobile compared to iPhone facebook app. If you're an iPhone user, I'm assuming you'd much rather use the app than a mobile version of the site (or mobile version of the site contained in a WebView in a an app).
That being said, depending on your app, if the mobile version of your app is highly usable, it could be okay...
Just my thoughts...
John Gruber on Daring Fireball just wrote about this today.
From a usability perspective, native apps usually feel better. They may also be more responsive and handle large amounts of data more gracefully. I have a few so-called "apps" on my devices which are just glorified Web apps, and they don't necessarily scream quality.
If you've already done your app, then just ship it. But keep your mind open to feedback from your users.
The answer is almost certainly "no". People care far more about the usability and experience of interacting with your application than what API-supplied widget you use to render it.
I read Apple has begun removing apps that are like this. Well technically, they remove apps they think could be easily implemented as a webapp instead. Yours obviously qualifies ;)
Source: http://techcrunch.com/2010/03/07/apple-cookie-cutter-apps/
EDIT: Apple seems to not mind, according to the Human Interface Guidelines:
If you have a webpage or web application, you might choose to use a web view to implement a simple iPhone application that provides a wrapper for it.
Of course, Apple has a tendency to contradict themselves. ;)
Apple human interface guidelines says this isn't even allowed. I forget where it comes from, but somewhere in the guideline it says apps that are only web views are not allowed. I'm about 95% sure I've seen this. Can anyone confirm?
I am thinking about developing a fairly simple facebook application which i have modelled the database in access.
I have web space and mySQL databases available, but I was wondering if anyone could point me towards any guides for facebook development? I had a search a while back, but they all seemed rather out of date. Anyone know where I should start with this?
I don't want to really share exactly what my idea is, but its a rating system for a particular set of products.
I haven't done much PHP before, only edited my wordpress template, and I do know enough SQL I hope.
Use the following links to create and configure ur application on facebook:
http://www.facebook.com/developers/
and the following links will help u to integrate with facebook platform i have an application on facebook developer platform and the following links helped me to integrate and use facebook API:
http://wiki.developers.facebook.com/index.php/API
http://wiki.developers.facebook.com/index.php/C
http://devtacular.com/articles/bkonrad/how-to-use-the-facebook-developer-toolkit-20/
You might find some good resources to start with here : Good resources on Facebook programming
I would highly recommend you buy...
http://pragprog.com/titles/mmfacer/developing-facebook-platform-applications-with-rails
No need to go through a bunch of small tutorials when you can find out just about all you can do through this book. It seems to be lacking on building a facebook app with an iframe though.