objective c - Post plain text on facebook wall from iOS application -


yet, it's rather popular question , fb's doc clear, stuck following situation: want user post ios app facebook wall article,that wants share friends(but article on website available subscribed users, can't post link article need post full article's text @ once)

    nsmutabledictionary *params =     [nsmutabledictionary dictionarywithobjectsandkeys:      _title, @"name",      _htmlbody, @"description",       nil];     [fbwebdialogs presentfeeddialogmodallywithsession:nil                                            parameters:params                                               handler:handler]; 

as can see, parameter "link" missed in params, , causes, post on wall empty!is there workaround how post on wall plain text without link, photo, etc.?

note: when add working link in params, can see post on wall, but, anyway description cut, several lines article seen.(i think because param "description" allows have particular size, m.b 1000 characters)

many in advance.

using slcomposeviewcontroller available in ios 6.0 , above

if ([slcomposeviewcontroller isavailableforservicetype:slservicetypefacebook]) {         slcomposeviewcontroller *facebookshare = [slcomposeviewcontroller composeviewcontrollerforservicetype:slservicetypefacebook];         nsstring *sharetext = @"this share post!";         [facebookshare setinitialtext:sharetext];          [facebookshare setcompletionhandler:^(slcomposeviewcontrollerresult result) {              switch (result) {                 case slcomposeviewcontrollerresultcancelled:                     nslog(@"post canceled");                     break;                 case slcomposeviewcontrollerresultdone:                     nslog(@"post sucessful");                     break;                 default:                     break;             }         }];          [self presentviewcontroller:facebookshare animated:yes completion:nil];     } 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -