FBConnect facebook.stream.publish with NSDictionary problems

后端 未结 4 979
北恋
北恋 2021-02-10 16:51

I have this code that can\'t send a Facebook request until now.

NSDictionary *firstDict = [NSDictionary dictionaryWithObjectsAndKeys:
    @\"image\", @\"Type\",         


        
4条回答
  •  遥遥无期
    2021-02-10 17:21

    I modified your example a little and it works. Here's the working code:

    NSString *att = @"{\"name\":\"i\'m bursting with joy\",\"caption\": \"User rated the lolcat 5 stars\", \"description\": \"a funny looking cat\"}";
    NSDictionary *attachment = [NSDictionary dictionaryWithObject:att forKey:@"attachment"];
    [[FBRequest requestWithDelegate:self] call:@"facebook.stream.publish" params:attachment];
    

提交回复
热议问题