0
我想使用这个API在我的iPhone应用程序,使应用程序将发布一个通知用户: https://developers.facebook.com/docs/concepts/notifications/ 我实现了它在我的应用程序: 能得到正确的权限:FB_Permission_manage_notifications 但无法打电话工作: 任何想法? (我得到这个回应:{“数据”:[],“摘要”:[]}。应用程序通知API
NSDictionary * params = @{ @"access_token" : [[FBSession activeSession] accessToken], @"template" : @"this is a test", @"href" : @"www.blabla.com"};
NSLog(@"%@",params);
NSURL *url = [NSURL URLWithString:@"https://graph.facebook.com/766042719/notifications"];
AFHTTPClient *httpClient = [[AFHTTPClient alloc] initWithBaseURL:url];
[httpClient getPath:@"" parameters:params success:^(AFHTTPRequestOperation *operation, id responseObject) {
NSString* mystring = [[NSString alloc] initWithData:responseObject encoding:NSUTF8StringEncoding];
NSLog(@"%@",mystring);
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
NSLog(@"%@",error);
}];