[英]How to post href link to facebook wall in objective c
I am posting a message on my facebook wall. 我在Facebook墙上张贴了一条消息。 I want to post a href link with my message. 我想在邮件中发布href链接。 When I click on that link, it should take me to another facebook page. 当我单击该链接时,它应该带我到另一个Facebook页面。 Please see the below screen shot. 请参见下面的屏幕截图。 If it's possible please give your suggestions or code. 如果可能,请提供您的建议或代码。 Please help me. 请帮我。
assume that this is your NSString
like 假设这是你的NSString
NSString *mesage =[NSString stringWithFormat:@"FINAL @[Page-id1] - 0 @ @[Page-id2] via ....",passyourPage-id1,passyourPage-id2];
NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:
mesage, @"message",
nil
];
/* make the API call */
[FBRequestConnection startWithGraphPath:@"/{page-id}/feed"
parameters:params
HTTPMethod:@"POST"
completionHandler:^(
FBRequestConnection *connection,
id result,
NSError *error
) {
/* handle the result */
}];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.