×

Discussion Board

Results 1 to 15 of 15

Hybrid View

  1. #1
    Regular Contributor
    Join Date
    Apr 2011
    Posts
    53

    how to share link of an video to my facebook account/twitter account

    hello friends

    Actually i want to share the link of an video to my facebook account/twitter account by clicking on the button present in my mobile app..means suppose i have an live video in my app..now there is an buttons for both facbook and twitter..when i can click these button than the link of the video is shared to either of my account ...so hw this can be done..plz suggest

    with regards
    Anshuman

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: how to share link of an video to my facebook account/twitter account

    1. you need to have a server that relay your post to facebook twitter. (need all authentication etc on your server)
    2. you need to have both twitter and facebook libraries in your application.

  3. #3
    Regular Contributor
    Join Date
    Apr 2011
    Posts
    53

    Re: how to share link of an video to my facebook account/twitter account

    yeh that i have..i have done all that things..when i click these button it went to the login page of facebook/twitter..as applicable..after that when i sign in..than i give a text box to share some views..its all work but the thing is that the link to the video is not come in that text box..so hw that can be done..

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: how to share link of an video to my facebook account/twitter account

    Quote Originally Posted by AnshumanBorah View Post
    yeh that i have..i have done all that things..when i click these button it went to the login page of facebook/twitter..as applicable..after that when i sign in..than i give a text box to share some views..its all work but the thing is that the link to the video is not come in that text box..so hw that can be done..
    have you uploaded the video file some where online ?

  5. #5
    Regular Contributor
    Join Date
    Apr 2011
    Posts
    53

    Re: how to share link of an video to my facebook account/twitter account

    ok i will send u the twitter code...

    #include "mainwindow.h"
    #include "ui_mainwindow.h"
    #include <QWebView>
    #include <QTextEdit>
    #include <QWebFrame>

    MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
    {
    ui->setupUi(this);
    }

    MainWindow::~MainWindow()
    {
    delete ui;
    }

    void MainWindow::SslErrors(QNetworkReply * reply, const QList<QSslError> & errors) {

    reply->ignoreSslErrors(errors);
    }



    void MainWindow:n_pushButton_clicked()
    {

    QWebView *web=new QWebView(this);
    web->resize(this->width(),this->height());

    QObject::connect(web->page()->networkAccessManager(), SIGNAL(sslErrors(QNetworkReply*,const QList<QSslError>&)), this, SLOT(SslErrors(QNetworkReply*,const QList<QSslError>&)));


    web->setUrl(QUrl(QString("http://mobile.twitter.com/?status=")+ui->textEdit->toPlainText())); // so i want the link to be display in that textEdit box

    web->showMaximized();


    }

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: how to share link of an video to my facebook account/twitter account

    yes but the link you have to get it your self by uploading it to some video hosting provider.

Similar Threads

  1. Problem adding user account to company account with subscription to Developer Program
    By tuytscht in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 2
    Last Post: 2011-03-04, 07:45
  2. Replies: 4
    Last Post: 2010-05-25, 13:53
  3. How to access the mails from an gmail account
    By iworktech_kiran in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2009-02-04, 14:39
  4. [split] How to create an account on symbiansigned.com
    By leu_kun in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 2
    Last Post: 2008-09-05, 08:50

Posting Permissions

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