ios - Issue with share only text on Facebook using FacebookSDK -


in application want share text on facebook. using facebooksdk.

my code below:

nsdictionary *params = @{                    @"name" :[nsstring stringwithformat:@"jinx share"],                    @"caption" : [nsstring stringwithformat:@""],                    @"description" :@"some text share",                    @"picture" : @"",                    @"link" : @"",                    };        // if session closed, open here, , establish handler state changes     [fbsession openactivesessionwithreadpermissions:nil allowloginui:yes completionhandler:^(fbsession *session,fbsessionstate state, nserror *error)      {          if (error)          {              uialertview *alertview = [[uialertview alloc] initwithtitle:@"error" message:error.localizeddescription delegate:nil cancelbuttontitle:@"ok" otherbuttontitles:nil];              [alertview show];          }          else if(session.isopen)          {               // invoke dialog              [fbwebdialogs presentfeeddialogmodallywithsession:nil                                                     parameters:params                                                        handler:               ^(fbwebdialogresult result, nsurl *resulturl, nserror *error) {                   if (error) {                       //nslog(@"error publishing story.");                    } else {                       if (result == fbwebdialogresultdialognotcompleted) {                           //nslog(@"user canceled story publishing.");                        } else {                           //nslog(@"story published.");                        }                   }}];          }       }]; 

but when facebook share dialogue opens, not show text there. please see below screenshot

enter image description here

and if gave link in "picture" parameter shows text. don't want image shown. want text share on facebook.

what wrong code ? give me solution.

since latest facebook sdk month of april, facebook not allow app pre-fill content shared. inconsistent facebook platform policy, see facebook platform policy, 2.3. refer sharing through facebook.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -