Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User npanse's Avatar
    Join Date
    Dec 2010
    Posts
    28
    Hi all
    I want to add a feature in my app which helps me share it on facebook and twiiter depending upon what the user selects.
    What I want is a dialog box to open up which lets me select Fb or twitter and then ask for login and share.
    I am pretty new to Qt development. All the help will be greatly appreciated.

    Thanks in advance.

    Nachiket

  2. #2
    Registered User npanse's Avatar
    Join Date
    Dec 2010
    Posts
    28
    HI all
    I want to add a feature in my app by which i can share it on Twitter and Facebook.
    I am pretty new to Qt programming...so can some one please help me on how to go about it??
    Any help will be greatly appreciated.
    Thank you.

    Nachiket

  3. #3
    Registered User npanse's Avatar
    Join Date
    Dec 2010
    Posts
    28
    HI all
    I want to add a feature in my app that will help me post on Twitter and Facebook.
    I am relaticely new to Qt.Can someone please help me on how to go about it.
    Any help will be greatly appreciated.
    Thank you.

  4. #4
    Nokia Developer Champion rahulvala's Avatar
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,299
    Quote Originally Posted by npanse View Post
    HI all
    I want to add a feature in my app that will help me post on Twitter and Facebook.
    I am relaticely new to Qt.Can someone please help me on how to go about it.
    Any help will be greatly appreciated.
    Thank you.
    Hi,
    You have to put one FaceBook Icon in your application which contains link, By touching or clicking that link user can post the same content in his or her facebook account,,,,,

    For that you have to connect your application with device's inbuilt social networking application. (This may be the one solution)

    Best regards,

  5. #5
    Registered User lucarocchi's Avatar
    Join Date
    May 2009
    Location
    Rome
    Posts
    253
    If you want this feature be integrated in your app , not external browser or similar , it requires several steps...
    Let shortly describe "how to" with Facebook first

    1) get confidence with Facebook Graph see http://developers.facebook.com/docs/api and http://developers.facebook.com/docs/guides/mobile paragraph Mobile Web

    2) setup a Facebook connect app , to get an apikey,clientid, and secretkey at http://www.facebook.com/developers/
    3) embed webview in your app
    4) webview->loadUrl to an url like this
    QString scope=QString("scope=email,read_stream,user_location,user_hometown,read_friendlists,user_photos,user_videos,publish_stream,offline_access");
    url=QUrl(QString("https://graph.facebook.com/oauth/authorize?client_id="+FACEBOOK_CLIENTID+"&display=touch&redirect_uri=http://www.facebook.com/connect/login_success.html&type=user_agent&"+scope));
    it prompt user with facebook auth dialog

    5 connect the urlChanged signal to your slot and extract access_token ....
    if (u.contains("connect/login_success")){
    emit(finished());
    QString f=webview->url().fragment();
    QUrl url(u+"?"+f);
    qDebug()<<"fragment"<<u;
    access_token=url.queryItemValue("access_token");
    error_reason=url.queryItemValue("error_reason");
    6 store the access token
    7 send GET/POST network request to Facebook Graph as you like
    Last edited by lucarocchi; 2010-12-18 at 14:26.
    Keep it simple, stupid (I think to myself)
    borg - http://store.ovi.com/content/116105

  6. #6
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    I suggest you try integrating 2 libs in http://code.google.com/p/facebook-cpp-graph-api/ (for face book) and https://github.com/minimoog/QTweetLib (for twitter) as a note to twitter oAuth might create problems so just take care about it.

  7. #7
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    It will not help in creating more then one thread for same problem try avoiding it.

    http://discussion.forum.nokia.com/fo...ok-And-Twitter already answered.

  8. #8
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    It will not help in creating more then one thread for same problem try avoiding it.

    your othere thread already been answered.

  9. #9
    Registered User npanse's Avatar
    Join Date
    Dec 2010
    Posts
    28
    It happened by mistake...really sorry...my first post was not shown so I posted again and still the same thing happend.

  10. #10
    Registered User npanse's Avatar
    Join Date
    Dec 2010
    Posts
    28
    It happend by mistake...really very sorry!

  11. #11
    (Retired) Nokia Developer Admin. Nokia Ron's Avatar
    Join Date
    Jan 2006
    Location
    Michigan
    Posts
    4,664
    The multiple posts issue is most likely my fault. I probalby approved all of the moderated messages. I catch them when they are one after the other but if there are posts in between I may miss them.

    Ron

Similar Threads

  1. Facebook and Twitter Problem.
    By pokoot in forum Symbian Web Runtime
    Replies: 1
    Last Post: 2010-09-11, 07:07
  2. How to Share Nokia wrt Application on Twitter and Facebook?
    By amitccet in forum Symbian Web Runtime
    Replies: 4
    Last Post: 2010-05-25, 13:53
  3. Twitter
    By HasithaRandika in forum Mobile Java General
    Replies: 7
    Last Post: 2009-05-27, 08:48

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved