ios - How to give hyperlink in the nsstring, to share in fb? -


nsstring "get xxx iphone app here". in string "here" , want give hyperlink particular url. fb share , , i'm using uiactivityviewcontroller. don't wanna go uilabel. know might silly,... me out.

thanks in advance geeks....

if want share on facebook, need tell safari open url display facebook page allows user share. here example :

//the url want share nsstring *urlstring = @"http://stackoverflow.com";  //the title want displayed on facebook nsstring *title = "the title of page";  //create url string tell facebook want share specific page  nsstring *shareurlstring = [nsstring stringwithformat:@"http://www.facebook.com/sharer.php?u=%@&t=%@", urlstring , title];  //create url object  nsurl *url = [ [ nsurl alloc ] initwithstring:shareurlstring ];  //launch safari url created         [[uiapplication sharedapplication] openurl:url];  //release object if don't need [url release]; 

Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -