views:

31

answers:

0

how can i get all test console of facebook like API test console.this one think AND another is but it is not woking help me here is code for getuser name

- (void)getUserName {
    NSString* fql = @"select name from user where uid == 1234";
    NSDictionary* params = [NSDictionary dictionaryWithObject:fql forKey:@"query"];
    [[FBRequest requestWithDelegate:self] call:@"facebook.fql.query" params:params];
}

here is code for request

- (void)request:(FBRequest*)request didLoad:(id)result {
    NSArray* users = result;
    NSDictionary* user = [users objectAtIndex:0];
    NSString* name = [user objectForKey:@"name"];
    NSLog(@"Query returned %@", name);
}

//here is code for askPermission

-(void)askPermission:(id)target
{
    FBPermissionDialog *dialog =[[[FBPermissionDialog alloc]init]autorelease];
                                 dialog.permission = @"status_update";
                                 [dialog show];
}

///here is code for publishFeed

-(void)publishFeed:(id)target
{
    FBFeedDialog *dialog = [[[FBFeedDialog alloc]init]autorelease];
    dialog.templateBundleId = ;----->here i didn't get the               templateBundleId
    dialog.templateData=@"{\"key1\":\"value1\"}";
    [dialog show];
}

help me out