Mohamed DiaaEldin
Mohamed DiaaEldin

Reputation: 1061

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 all 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

Upvotes: 0

Views: 1400

Answers (1)

Tope A
Tope A

Reputation: 46

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.

Upvotes: 1

Related Questions