views:

522

answers:

3

I would like to use Facebook api

(http://wiki.developers.facebook.com/index.php/API)

in my Qt Application.

I don't want to use WebKit. Is it possibile to use QNetwork only?

Is there any example on how to do it?

+3  A: 

Use QNetworkAccessManager to access the web without an actual browser.

e8johan
you can't you have to Authorization and Authentication for Desktop Applications via browser http://wiki.developers.facebook.com/index.php/Authorization_and_Authentication_for_Desktop_Applications
+4  A: 

Have you seen KFacebook, the KDE client for Facebook?

KdePlayground and KFacebook

They have a library for Facebook API and a Plasma Applet as well.

It's easier using jQuery, probably. But Qt4 can do the work, I think.

altuzar
A: 

You can also use QHttp directly

Mason Chang
QHttp is no longer the preferred method, Qt want people to use the QNetworkAccessManager for new projects:http://doc.trolltech.com/4.6/qhttp.html
Phil Hannent
Oh, Right. Thanks a lot!
Mason Chang