[Gambas-user] Facebook Component

Sebi Kul sebikul at ...626...
Sat Jun 4 20:55:39 CEST 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0xC5D113F0.asc
Type: application/pgp-keys
Size: 1711 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20110604/a7ddcf5d/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Facebook_for_Gambas-0.0.1.tar.gz
Type: application/x-gzip
Size: 8048 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20110604/a7ddcf5d/attachment.bin>


More information about the User mailing list