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);
}];