×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    5

    Accessing facebook without using QFacebook

    Hi all,

    I am creating an app for Symbian^3 which will upload a photo to my profile on facebook. I am aware that there is a QFacebook for doing this, but I've had no luck in using it in Qt Creator since I dont know how to do it (the building of QFacebook library, for example). So is it possible to just use the APIs that are available with Qt 4.7.2? And if so, can you show me an example code which will accomplish this?

    Thanks!

  2. #2
    Regular Contributor
    Join Date
    Oct 2008
    Location
    bhavnagar
    Posts
    255

    Re: Accessing facebook without using QFacebook

    Qt doesn't include any kind of built-in Facebook support in specific.

    For info on what APIs/interfaces Facebook provides, you can find that on Facebook: http://developers.facebook.com/docs/guides/mobile

    Nokia has not created any Facebook access APIs/libraries for Qt.
    nayan trivedi.

  3. #3
    Registered User
    Join Date
    Feb 2011
    Posts
    5

    Re: Accessing facebook without using QFacebook

    So according to the Facebook guides I need to use Javascript to access Facebook in Qt how do i do it? Does that mean I cannot use any API bundled with Qt? im just a newbie to Qt so i dont know much about the APIs that I can use for making the app.

  4. #4
    Regular Contributor
    Join Date
    Oct 2008
    Location
    bhavnagar
    Posts
    255

    Re: Accessing facebook without using QFacebook

    Quote Originally Posted by dr_f View Post
    does that mean I cannot use any API bundled with Qt?
    Yes you are right.
    Qt does not include any kind of built-in Facebook support. Up to i know.
    Nokia hasn't created any Facebook access APIs for Qt

    You can go through
    This site
    and this site

    for more information.
    Last edited by nayan_trivedi; 2011-03-15 at 11:18.
    nayan trivedi.

  5. #5
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Accessing facebook without using QFacebook

    Basically the Facebook API is a simple REST interface where you form the correct URL and then do a GET or PUT. You do not need to use Javascript (and none of the phone implementations use it, to my knowledge), though you presumably could use WebView and its Javascript if you wanted to. You may need JSON to receive data, but there are a couple of Qt JSON implementations available or you can write your own in an afternoon.

    Here's the link to the "raw" API: http://developers.facebook.com/docs/reference/api/

  6. #6
    Registered User
    Join Date
    Feb 2011
    Posts
    5

    Re: Accessing facebook without using QFacebook

    how do i do REST in qt then? from what i read from other forums, i have to use QNetworkAccessManager, correct? i'd appreciate it if someone can show here a sample code of doing get and put. thanks!

  7. #7
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Accessing facebook without using QFacebook

    Quote Originally Posted by dr_f View Post
    Hi all,

    I am creating an app for Symbian^3 which will upload a photo to my profile on facebook. I am aware that there is a QFacebook for doing this, but I've had no luck in using it in Qt Creator since I dont know how to do it (the building of QFacebook library, for example).
    You build it just as you build any other Qt project, so I guess you just need to learn a bit of Qt. Which you'll have to do anyway.

    Quote Originally Posted by dr_f View Post
    So is it possible to just use the APIs that are available with Qt 4.7.2? And if so, can you show me an example code which will accomplish this?
    Sure it is possible, that's what the QFacebook library is using as well, isn't it? And isn't QFacebook, by way of being open source, the very example you need?
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  8. #8
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Accessing facebook without using QFacebook

    Quote Originally Posted by dr_f View Post
    how do i do REST in qt then? from what i read from other forums, i have to use QNetworkAccessManager, correct? i'd appreciate it if someone can show here a sample code of doing get and put. thanks!
    You know, sometimes you just have to read the docs and start programming.

  9. #9
    Registered User
    Join Date
    Feb 2011
    Posts
    5

    Re: Accessing facebook without using QFacebook

    ok after a lot of trying (and failing) to compile qfacebook i was finally able to compile it. i'll give it a try for now. thanks for all the replies! they were helpful

Similar Threads

  1. Accessing internet without user confirmation
    By cassioli in forum Symbian
    Replies: 9
    Last Post: 2008-10-20, 04:43
  2. Tip:accessing contact list without using PIM Api
    By soku123 in forum Mobile Java General
    Replies: 0
    Last Post: 2007-12-13, 10:15
  3. accessing localhost without wlan connection
    By kabuff in forum General Development Questions
    Replies: 0
    Last Post: 2006-10-26, 02:07
  4. Accessing Contacts without using PIM API
    By kamalinfo2k2@yahoo.com in forum Mobile Java General
    Replies: 2
    Last Post: 2006-08-10, 14:18

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×