我想在我的 iPhone 应用程序中使用这个 API,以便应用程序向用户发布通知: https ://developers.facebook.com/docs/concepts/notifications/ 我在我的应用程序中实现了它:能够得到正确的许可:FB_Permission_manage_notifications 但无法接到工作电话:有 什么想法吗?(我得到这个回应:{“data”:[],“summary”:[]}
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);
}];