facebook application test - facebook

How can one quickly test facebook application. At the moment I am doing javascript changes and I have to upload every small change on server and refresh it. The application uses FBML.
Thanks in advance

First of all, try Rell for all your JavaScript needs.
Secondly, As FBML goes, I'd try opening a test page and using Static FBML.
As far as I'm concerned, I don't think there is a any way of integrating the two. However, you should check out the Tools page for some more helpful developer tools.

Related

Is using FB JavaScript SDK the most reliable option?

We use FB JavaScript SDK and we're loading it asynchronously, according to their docs:
https://developers.facebook.com/docs/reference/javascript/
We use it to handle the login and for some basic calls to their API (mostly to publish stories and share links):
https://developers.facebook.com/docs/reference/javascript/FB.login/
https://developers.facebook.com/docs/reference/javascript/FB.api/
Since we started using it, we have experienced different issues on some browsers and devices.
As an example, yesterday we experienced problems trying to post on the user's feed from an iOS device (FB.api('/me/feed', 'post'...)), this problem lasted several hours. Earlier, we experienced problems in other platforms such as IE.
It seems like FaceBook pushes changes to their SDK without testing properly on a wide range of devices.
My questions (not easy questions, I believe):
Have you experienced similar problems. Do you think it is reliable?
Is there any realistic alternative to it?
I've always used the JavaScript SDK and it's been fine. Sure, there are issues from time to time, but that's part of being a Facebook developer.
The only alternative I can think of would be the PHP SDK. Both should be equally reliable.

iOS Development: All I need to do is post a tweet

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.

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

iPhone + Android App to view Blog

What would be the best way to write an app for the iPhone OS and the Android OS that allows access to a web blog (posted on blogspot.com)? Are there ways to manipulate the incoming data from the website to fit the UI of the phones, or will I have to re-do a lot of the blogs?
Any help would be nice! And thank you in advance!
The easiest way in both would be to integrate the browser in the web app but perhaps restrict it to the blog.
For example, your app would open and have its own UI, but displaying the actual blog content would be done in an integrated browser (such as a WebView in Android).
Doing it this way isn't the best as it wouldn't be the best experience for the user, but it has the added benefit of keeping all the blog's design and extras, as well as javascript functionality.
"Manipulating incoming data from the website" (otherwise known as scraping) would be tricky for modern blogs since they usually contain so much customised content and are nowadays more like websites with blogs than just regular blogs.
I guess your best bet is to use Phonegap open source framework.
Since it basically creates local webapps and both platforms have very similar browser capabilities this should be a good fit for your intended application.

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.