2011-10-06 18 views
0

我試圖使用Graph API張貼到Facebook朋友的牆上。但是,而不是張貼到我朋友的牆,它返回他的wall posts。我已經把它貼我使用下面的代碼,並從搜索其他類似的問題,好像我的代碼是正確的。iPhone的Facebook SDK - 不能發佈到留言板

我也已經設置了正確的permissionsread_stream & publish_stream)。有沒有人有任何想法?

NSMutableDictionary* params = 
    [NSMutableDictionary dictionaryWithObjectsAndKeys:@"some test text", 
                 @"message", 
                 @"123456789", 
                 @"target_id",nil]; 

[self.facebook requestWithGraphPath:[NSString stringWithFormat:@"%@/feed",@"123456789"] 
          andParams:params 
         andDelegate:self]; 

回答

0

你試試這樣,

[self.facebook requestWithGraphPath:@"123456789/feed" 
          andParams:params 
         andHttpMethod:@"POST" 
         andDelegate:self]; 

因爲好像,你是不是添加方法屬性

+0

非常感謝:)不敢相信,我忽略了的東西就這麼簡單! – bennythemink