×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    105

    Smile Facebook Connect for Facebook

    Hi experts and developers out there,

    Have anyone tried out the facebook connect example here?
    http://wiki.forum.nokia.com/index.php/Facebook_Connect

    I tried running on desktop and it works. I tried porting it to S60.. the apps can be installed and run, but cannot really login to facebook. I am suspecting it is bcos of some openssl libraries that it requires. Which I need to install them on my desktop too.

    Does symbian supports openssl? Do I need to install anything additional libraries for the openssl to work?

  2. #2
    Regular Contributor
    Join Date
    Oct 2008
    Location
    Oslo, Norway
    Posts
    329

    Re: Facebook Connect for Facebook

    Hi,

    Seems to work for me (tested on Qt for Symbian 4.6.2, 5800 XpressMusic), after some modifications. SSL support on Symbian comes from Open C, so you don't need to worry about any additional libraries.

    Here's what I changed:

    qfacebookconnect.pro: added the following:

    Code:
    symbian: {
      INCLUDEPATH += /epoc32/include/stdapis
      TARGET.CAPABILITY = LocalServices ReadUserData WriteUserData UserEnvironment NetworkServices Location 
      TARGET.EPOCALLOWDLLDATA = 1
      }
    Above, I added all the capabilities that you can use with self-signed sis packages.

    To test with the 'sample' app provided, I modified it as well:

    sample.pro: add the following:
    Code:
    symbian: {
      INCLUDEPATH += /epoc32/include/stdapis
      TARGET.CAPABILITY = NetworkServices
      LIBS += -lqfacebookconnect
      fbclib.sources = qfacebookconnect.dll
      fbclib.sources.path = \sys\bin
      DEPLOYMENT += fbclib
    }
    This will deploy the DLL along with the test app.

    To make the app more usable in an S60 device (at least in landscape), I also modified main.cpp:

    Code:
    int main(int argc, char *argv[])
    {
    #ifdef Q_OS_SYMBIAN
        QApplication::setAttribute (Qt::AA_S60DontConstructApplicationPanes);
    #endif
        QApplication a(argc, argv);
        MainWindow w;
    #ifdef Q_OS_SYMBIAN
        w.showFullScreen();
    #else
        w.show();
    #endif
        return a.exec();
    }

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    105

    Smile Re: Facebook Connect for Facebook

    Thats really helpful. Thanks for sharing!

  4. #4
    Registered User
    Join Date
    Nov 2009
    Posts
    26

    Re: Facebook Connect for Facebook

    Hi,
    i tried to build the sample-example of QFacebookconnect for S60 SDK in Carbide/Creator, but building for the emulator throws the following error

    Specified file '\S60\devices\Nokia_N97_SDK_v1.0\epoc32\release\WINSCW\udeb\qfacebookconnect.lib' not found

    and for the device

    \S60\devices\Nokia_N97_SDK_v1.0\epoc32\release\armv5\LIB\qfacebookconnect.dso: No such file: No such file or directory

    I added the points in qfacebookconnect.pro and sample.pro. Have I missed something?

  5. #5
    Regular Contributor
    Join Date
    Oct 2008
    Location
    Oslo, Norway
    Posts
    329

    Re: Facebook Connect for Facebook

    Quote Originally Posted by Cubik View Post
    qfacebookconnect.dso: No such file: No such file or directory

    I added the points in qfacebookconnect.pro and sample.pro. Have I missed something?
    You'll have to build the library before you can build the test app. After modifying qfacebookconnect.pro, try the following:

    Code:
    qmake
    make release-gcce
    abld freeze gcce
    make release-gcce    (yes, for a 2nd time - this will generate the import libraries after the dll has been frozen)
    and the same for emulator (debug-winscw)

  6. #6
    Registered User
    Join Date
    Apr 2008
    Posts
    105

    Unhappy Re: Facebook Connect for Facebook

    I still can't get the sample working. Have done the steps as stated by treinio. The sample can run on the phone, but nothing happens when I login to facebook and get all my friends. There is simply no response. I also do not know if I have login to facebook successfully.

  7. #7
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    102

    Re: Facebook Connect for Facebook

    Hi to All,
    i'm looking for QFacebookConnect download but all links that i've found are out, also link in top of this discussion.
    Some of you could write a link where i could keep api for use facebook on qt?
    Thanks a lot.

  8. #8
    Registered User
    Join Date
    Nov 2009
    Posts
    26

    Re: Facebook Connect for Facebook

    @earendil:
    you can download it from git on the right side -> download master
    http://gitorious.org/qfacebookconnec...t/trees/master

    @atonical:
    the sample app runs on my phone, but like yours, it is not connecting successfully (or the signal sessionDidLogin is not emitted). The messagebox with the FBUid doesn't appear. When i get all my friends, the debugger throws an error with the errorcode 104 - "Incorrect signature".
    Last edited by Cubik; 2010-03-30 at 16:31.

  9. #9
    Registered User
    Join Date
    Jul 2007
    Posts
    26

    Re: Facebook Connect for Facebook

    Most of the changes suggested by treinio have now been taken into the master branch.
    So now it should compile without any problems. I have tried it with Qt 4.6.2 for Symbian and Nokia Symbian 5.0 SDK.

    The sample logs in successfully and query can be made, however the Qt dialogs on Symbian behave a bit differently, this will be sorted out soon.


    -A

  10. #10
    Registered User
    Join Date
    Apr 2008
    Posts
    105

    Re: Facebook Connect for Facebook

    Quote Originally Posted by Cubik View Post
    @earendil:
    you can download it from git on the right side -> download master
    http://gitorious.org/qfacebookconnec...t/trees/master

    @atonical:
    the sample app runs on my phone, but like yours, it is not connecting successfully (or the signal sessionDidLogin is not emitted). The messagebox with the FBUid doesn't appear. When i get all my friends, the debugger throws an error with the errorcode 104 - "Incorrect signature".
    can anyone download the master from git? I can't seem to download. It says "Malformed response in ref list: <head>"

  11. #11
    Registered User
    Join Date
    Apr 2008
    Posts
    105

    Unhappy Re: Facebook Connect for Facebook

    Quote Originally Posted by digitalsurgeon View Post
    Most of the changes suggested by treinio have now been taken into the master branch.
    So now it should compile without any problems. I have tried it with Qt 4.6.2 for Symbian and Nokia Symbian 5.0 SDK.

    The sample logs in successfully and query can be made, however the Qt dialogs on Symbian behave a bit differently, this will be sorted out soon.


    -A
    hi digital surgeon,

    is there anything else you did in order to get the sample working? like capabilties or something? I can install the new sample on the phone but the app cannot start up.

  12. #12
    Registered User
    Join Date
    Apr 2010
    Posts
    1

    Re: Facebook Connect for Facebook

    Hi all,
    tried to build and run the sample app with Qt 4.6.2 for Symbian on my nokia 5530..i have installed trk..it gives the error-Could not read template package file from the debug folder.
    Checked the debug folder..its empty.Am i supposed to copy something there? What is the procedure to run it on my phone?
    Last edited by confusedsoul; 2010-05-01 at 13:13.

Similar Threads

  1. connect and publish on facebook
    By ing.jose.campo in forum Symbian
    Replies: 6
    Last Post: 2011-11-27, 19:37
  2. Facebook connect
    By ravindra4mcanokia in forum Mobile Java General
    Replies: 0
    Last Post: 2009-12-23, 11:47
  3. Replies: 7
    Last Post: 2009-03-21, 18:54
  4. E70-1 BB connect BES with Lotus Notes
    By christophay in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2007-06-12, 10:12

Posting Permissions

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