iOS Facebook cannot post on another user's wall

Discussion in 'iOS Programming' started by Soulstorm, Jan 19, 2012.

  1. Soulstorm
    Expand Collapse
    macrumors 68000


    Feb 1, 2005
    I am trying to make a post on another user's wall using another user using FBConnect. I am using the embedded method of the iOS Facebook API (that is, I am forcing the browser to appear inside my app, so I am not leaving the application at all). This method works for posting into the wall of the same user, but doesn't work on the wall of another user.

        self.facebook = [[[Facebook alloc] initWithAppId:self.appID andDelegate:self] autorelease];
    if ([self.facebook isSessionValid]) {
        [self proceedToPost];
        [self.facebook authorize:nil];
    - (void)proceedToPost
    NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"myname", @"name",
                                   self.appID, @"app_id",
                                   self.title, @"caption",
                         , @"link",
                                   @"animateURL", @"picture",
    [params setObject:"my-user-profile-id" forKey:@"to"];
    [self.facebook dialog:@"feed" andParams:params andDelegate:self];
    The problem is that authorization is done as expected, but when trying to actually post, I see an error message in the embedded browser "cannot post to user's wall".

    Can anyone help me with this?
  2. PhoneyDeveloper
    Expand Collapse
    macrumors 68030


    Sep 2, 2008

Share This Page