我使用以下代码在我的 iphone 应用程序的 facebook 朋友墙上发布邀请
我每天在他们的墙上发布的用户数量是否有限制,每个用户的帖子数量是否有限制?
我使用此代码让我的应用用户通过在他们的墙上发帖来邀请他的朋友
Facebook* facebook =
[[Facebook alloc] initWithAppId:appID andDelegate:self];
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"Facebook SDK for iOS", @"name",
@"Build great social apps and get more installs.", @"caption",
@"The Facebook SDK for iOS makes it easier and faster to develop Facebook integrated iOS apps.", @"description",
@"https://developers.facebook.com/ios", @"link",
@"https://raw.github.com/fbsamples/ios-3.x-howtos/master/Images/iossdk_logo.png", @"picture",
nil];
[FBRequestConnection startWithGraphPath:[NSString stringWithFormat:@"%@/feed",friendId]
parameters:params
HTTPMethod:@"POST"
completionHandler:^(FBRequestConnection *connection, id result,NSError *error)
{
NSLog(@"%@", result);
}];