I want to make a message from my iOS application mentioning some friends. I got his id.
So, I am using the following steps and not working:
NSString * textToShare = @ "hello @ [100003626828741]"; NSDictionary * parameters = @ {@ "Picture": picture, @ "name": @ "hello", @ "caption": textToShare, @ "message": textToShare,};
NSURL *feedURL = [NSURL URLWithString:@"https://graph.facebook.com/me/feed"]; SLRequest *feedRequest = [SLRequest requestForServiceType:SLServiceTypeFacebook requestMethod:SLRequestMethodPOST URL:feedURL parameters:parameters]; feedRequest.account = [[ICollinaService instance] facebookAccount]; [feedRequest performRequestWithHandler:^(NSData *responseData, NSHTTPURLResponse *urlResponse, NSError *error) { NSLog(@"Facebook HTTP response: %i", [urlResponse statusCode]); NSLog(@"Facebook HTTP response allHeaderFields: %@", [urlResponse allHeaderFields]); NSLog(@"Facebook HTTP error: %@", error); }]; }
How can I mention a friend in my post? Thanks
The result of the message: hello @ [100003626828741] as the header and message without changing the identifier for the name with the link / tag.
source share