I want to get the name of the pages, where user is the admin. but there aren't any results. I use below code,
NSString *query =
@"SELECT name FROM page WHERE page_id IN "
@"(SELECT page_id FROM page_admin WHERE uid = me())";
// Set up the query parameter
NSDictionary *queryParam = @{ @"q": query };
// Make the API request that uses FQL
[FBRequestConnection startWithGraphPath:@"/fql"
parameters:queryParam
HTTPMethod:@"GET"
completionHandler:^(FBRequestConnection *connection,
id result,
NSError *error) {
if (error) {
NSLog(@"Error: %@", [error localizedDescription]);
} else {
NSLog(@"Result: %@", result);
}
}];
Any help?
Try with Graph_API. Steps-
get "manage_pages" permission from User (extended permissions)
call graph API- https://graph.facebook.com/me/accounts
U can test this procedure in this page -> Just click on 'Get Access Token' button-> under 'Extended permission' check 'manage_pages' & submit it. It will give you the admin-page-details JSON.
Try and let me know.Thank you.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.