facbook link not accepted “&†ie ampersand when i post the link through my link
hello friends,I am working on app where i have to post the video link to facebook,so i have used the postfeed project for facebook which is present in git repository,my link appears in the below way
http://xyz.abc.com.aspx?streamid=223322&id=1400...
now it accepts till http://xyz.abc.com.aspx?streamid=223322
and i can post the link till here,but as soon as i add the later part ie&id=1400,its not posting it,so what is the problem with that "&",please help me out..
regards
anshuman
Re: facbook link not accepted “&†ie ampersand when i post the link through my link
How do you "add the later part"?
Re: facbook link not accepted “&†ie ampersand when i post the link through my link
the code i have written is like this..u please check where i have done mistake..
void VideoPage::OnFacebook()
{
PostFeed *pPostFeed=new PostFeed;
QUrl url;
url.setUrl("http://xyz.abc.com.aspx?");
url.addQueryItem("streamid", video.url);
url.addQueryItem("id","1400");
url.addQueryItem("type","video-mp4");//mp4
url.addQueryItem("redirect","false");
pPostFeed->setPostText(url.toString());
pPostFeed->showFullScreen();
}
Re: facbook link not accepted “&†ie ampersand when i post the link through my link
What is PostFeed? What does it do with the argument received in the setPostText() method?
Re: facbook link not accepted “&†ie ampersand when i post the link through my link
its is an pointer object to an postfeed class..its sent the url in the form of string to the set the url in the textbox present in postfeed class..
Re: facbook link not accepted “&†ie ampersand when i post the link through my link
Quote:
Originally Posted by
Anshuman
its is an pointer object to an postfeed class.
I'm asking about the class itself. Did you write it or are you just using it?
Re: facbook link not accepted “&†ie ampersand when i post the link through my link
yeh there is a method in that postfeed class named "setPostTest()".. where i simply set the url in textedit box
Quote:
void PostFeed::setPostText(QString str)
{
ui->textEdit->setPlainText(str);
}
Re: facbook link not accepted “&†ie ampersand when i post the link through my link
What happens with the text then? Does the text edit contain the proper link text? How do you upload the post to the server?
Re: facbook link not accepted “&†ie ampersand when i post the link through my link
actually now i updated the code..now what happened the link is share in the facebook but only thing is that..the link before "&" is only shared..that means if i share
http://xyz.abc.com.aspx?streamid=223322&id=1400...
then in face it comes as http://xyz.abc.com.aspx?streamid=223322..my updated code is:
Quote:
PostFeed *pPostFeed=new PostFeed;
QUrl url;
url.setUrl("http://xyz.abc.com.aspx?");
url.addQueryItem("streamid", video.url);
url.addQueryItem("%26id","1400"); //add %26
url.addQueryItem("%26type","video-mp4");//mp4
url.addQueryItem("%26redirect","false");
pPostFeed->setPostText(url.toString());
pPostFeed->showFullScreen();
Re: facbook link not accepted “&†ie ampersand when i post the link through my link
You're performing the upload incorrectly.
Re: facbook link not accepted “&†ie ampersand when i post the link through my link
can u please suggest me hw this can be done...
Re: facbook link not accepted “&†ie ampersand when i post the link through my link
Quote:
Originally Posted by
Anshuman
can u please suggest me hw this can be done...
No, because I have already asked you how you were uploading the post to the server and you ignored my question.