Phonegap and Facebook - Idiots Guide - facebook

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.

Related

bit.ly redirect not functioning properly

I have been going back and forth with my dev teams today to determine an issue that has come up. It appears that links shortened by bit.ly are not being directed to the proper URL on mobile devices only. This URL http://bit.ly/1aRvnqH will take you to the appropriate place on a desktop computer, but put it into a mobile device browser on your phone and it is broken. The URL that the mobile device renders is a very old link from our old web structure from more than a year ago.
Further it is appending a GA tag for our affiliate program platform as well as a reference code that does not exist in our affiliate program.
My dev guys think it may be something to do with this new deep linking on mobile that bit.ly recently rolled out. When I called bit.ly, they said they've never heard or seen of this before and asked I send an email to their support group which I've done.
Was hoping someone here may have some ideas as well.
Thanks in advance.
Brian
DISCLAIMER: I'm a developer at Bitly
This is a bug caused by our on-going affiliate test.
We're pushing out a fix for this link now and it should be working properly within the next 30 minutes.
If other links stop working for you in the future, please contact us at support#bit.ly or http://support.bitly.com and we'd be happy to look into it.

How do PhoneGap applications typically handle user accounts?

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.

Facebook iOS SDK too slow

I have recently wired up my application to use the Facebook iOS SDK (http://github.com/facebook/facebook-ios-sdk). The integration works fine, but the pages loads really slow. It takes really a long time to load the login screen. Login action takes more than 10-60 seconds.
I didn't have this problem with Facebook Connect. Am I missing something? Is there a way to optimize this?
Update
I did scan the activity through HTTP Scoop over Wi-Fi which revealed something interesting, there are some .js and .css files that are taking a lot of time in the new Facebook iOS SDK (login.php, ar7ed2ft.css, 4wj242ne.js, abl6sgyy.js,) where as the old one was zippy. How to let Facebook know about it?
New Facebook iOS SDK
Old Facebook Connect
Implement OAuth 2.0 yourself. It just uses HTTPS, extremely easy to implement. In my experience, it was easier than using their confusing, document-less SDK. Important is getting authentication token. You can access all their graphs with it.
If you implement it yourself, you can choose login screen dialog design as one of:
touch
WAP
WAP is uglier because it's for older phones, but if you really need it, it may help you.
Try using this one http://github.com/facebook/facebook-iphone-sdk

How can I find tutorials for building an application that gets updates from an online website?

I want to build an application that gets updates from online websites like Twitter or Facebook. Currently, I haven't even got a clue on how to do this.
Also, in certain applications, like Doodle Jump, I have seen updates that pop up. Some other applications have a news section that gets updated often. How is it done? Any tutorial or working code will be very helpful.
There is a good tutorial I used to do this with ASP.NET.
I'm going to guess that you are interested in building an iPhone app. I don't know if you have any experience working with objective-c or the iPhone SDK, but here is a nice tutorial that touches on some of the concepts you will need.
http://icodeblog.com/2009/07/09/integrating-twitter-into-your-applications/

Where should I start with a facebook application?

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.