我将 Facebook SDK 集成到我的 iOS 原生 APP 中。我完成了登录并收到了活动的 FBSession。然后我请求发布许可,然后我想向我的单身朋友发送邀请,例如 Candy Crush Saga。可能吗?
你能帮我吗?
要发布帖子,我使用:
NSMutableDictionary *params = [@{
@"link" : @"https://developers.facebook.com/ios",
@"picture" : @"https://developers.facebook.com/attachment/iossdk_logo.png",
@"name" : @"Facebook SDK for iOS",
@"caption" : @"Build great social apps and get more installs.",
@"description" : @"The Facebook SDK for iOS makes it easier and faster to develop Facebook integrated iOS apps."
} mutableCopy];
[FBRequestConnection
startWithGraphPath:@"me/feed"
parameters:params
HTTPMethod:@"POST"
completionHandler:^(FBRequestConnection *connection,
id result,
NSError *error) {
NSString *alertText;
if (error) {
alertText = [NSString stringWithFormat:
@"error: domain = %@, code = %d",
error.domain, error.code];
} else {
alertText = [NSString stringWithFormat:
@"Posted action, id: %@",
result[@"id"]];
}
// Show the result in an alert
[[[UIAlertView alloc] initWithTitle:@"Result"
message:alertText
delegate:self
cancelButtonTitle:@"OK!"
otherButtonTitles:nil]
show];
}];
但是发送邀请的图形路径是什么?
提前致谢
卢卡