开发者

facebook sdk for ios feed dialog problem, not showing post although it posts

image for iphone with facebook feed dialog

I share on facebook through the following method in the delegate who is called from al开发者_JAVA百科l portions sharing in my app the feed dialog pops up with no content but it is actually posts on facebook wall what is wrong with my code?

-(void)shareOnFaceBook:(NSMutableDictionary *)dic 
{

    if(self.facebook ==nil)
    {

        self.facebook= [[Facebook alloc] initWithAppId:@"238314679531075"];

        NSArray* permissions =  [[NSArray arrayWithObjects:
                                  @"email", @"read_stream",@"publish_stream", nil] retain];

        [facebook authorize:permissions delegate:self];

    }


    [self.facebook dialog:@"feed" andParams:dic andDelegate:self];

}

thanks


There is a bug reported as per the comment from Albert. but in the mean time, you can post to facebook by making an HTTP Post to the Graph API.

[self.facebook requestWithGraphPath:@"post" andParams:yourParameters andHttpMethod:@"POST" andDelegate:self];

You will have to implement your own view controller but that should be straightforward. At least something to get you ahead while waiting for the bug to be fixed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜