Hi all! I have been working the last few days on a Facebook component to make GAMBAS more social and web friendly. It doesn't have many bugs, it misses some features, and it may crash at any time (no error managment implemented). BUT, it works. The only things I have implemented so far are:
A. *Authentication:* Done using an HTTPClient instance and gb.qt4.webkit to request the user to login.*[1]* Also, I had to code a basic OAuth2 Module, this can be moved into another component to allow interoperability between Facebook and other services using OAuth2, like Google services, etc. [1] I really had to decide between this two options. The first one was to pass the "offline_access" scope to store an access token *without expiration*. The storage of this token is done using the gb.desktop component (GNOME Keyring, KWallet, etc). The second option was to show a window every time the user started the program requesting him to login and update the token (not good at all) I choose the first option after all, it's easier to use, implement, code, etc. It looks better for the end-user and needs a lot less code. B. *Basic Graph API access:* when you execute the component a window will pop up with a few options to let you interact and test the API. To use it, you must first authenticate, ergo, you need an AppID and an API Secret key (you can create a sample application or use your personal access token). * The data returned by the component is a Json object. The component is ready for use, although it's still BETA, it can be used while developing a parallel application, please *do no use it on stable releases*. That being said, I hope you like it and find it easy/helpful. I will be releasing updates to this component via the mailing list just as I am doing now. Regards
0xC5D113F0.asc
Description: application/pgp-keys
Facebook_for_Gambas-0.0.1.tar.gz
Description: GNU Zip compressed data
------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2
_______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user