Results 1 to 5 of 5

Thread: Qt and Web Services (e.g Facebook)

  1. #1
    Join Date
    Jan 2013
    Posts
    23
    Thanks
    3
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Question Qt and Web Services (e.g Facebook)

    Hello everyone i was hoping someone here is able to shed some light on a few things for me.
    For a while now I have been trying to figure out how i can do the following.

    Have a desktop application login to my facebook account and check the home page for recent posts.
    Google is not been as helpfull as usual as what i have been able to find out is trivial.
    BUT the facebook-cpp-graph-api uses Qt WebKit for auth can someone please point me in the direction of a solution.
    I want to be able to display the info as i want so just to download the page or what not is not what am trying to do.

    I have not been able to figure this out and i whould realy aprichiate some guidence.
    I have lookt at the http://developers.facebook.com/tools/explorer and its seems i can do the recuests in HTML.?

    I have never done any programing of this nature (Geting data and posting data to a "Web Service") before so this is all new to me.
    And a beginner in Qt so any info at all realy is great.

    Cheers
    WetCode.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt and Web Services (e.g Facebook)

    In general what you will need to use is QNetworkAccessManager.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2013
    Posts
    23
    Thanks
    3
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Qt and Web Services (e.g Facebook)

    Ohe this is great thanks for you reply whould you be willing to show me a short example?
    Just the bear minimum of how to connect\ login to a web site? (If you got the time for it ofcorse.)

    Cheers
    WetCode

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt and Web Services (e.g Facebook)

    There is a simple example available in the docs. I can't give you an example on how to login to a website because every website is different.

    For facebook I think you should start reading here: https://developers.facebook.com/docs/concepts/login/

    You will need either QNetworkAccessManager or WebKit.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt and Web Services (e.g Facebook)

    Whenever one needs a Qt implementation of something, it is usually a good idea to look at the repository of the largest Free and Open Source software community based on Qt: KDE
    https://projects.kde.org/projects/ex...libs/libkfbapi

Similar Threads

  1. Facebook Relationship Visualization
    By Sven in forum Qt-based Software
    Replies: 3
    Last Post: 10th November 2014, 14:26
  2. How can I connect to facebook in my code?
    By kishoreksnair in forum Newbie
    Replies: 4
    Last Post: 16th September 2011, 09:35
  3. sharing an app on facebook and twitter
    By ranjit.kadam in forum Qt Programming
    Replies: 1
    Last Post: 4th May 2011, 20:32
  4. Interfacing with the Facebook API
    By wswartzendruber in forum Newbie
    Replies: 2
    Last Post: 20th July 2009, 23:18

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.