Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

newtoiphonesdk

macrumors 6502a
Original poster
Jul 30, 2010
567
2
I am trying to use FBConnect in my app to display links from my app. I am using a fork of ShareKit that has the new opengraph method of FBConnect. Everything shows up on my facebook wall fine, but in the app, the text for the link property doesn't. I have two images to show what I mean. The code in the SHKFacebook.m is this:
Code:
- (BOOL)send
{			
    NSMutableDictionary *params = [NSMutableDictionary dictionary];
    NSString *actions = [NSString stringWithFormat:@"{\"name\":\"Get %@\",\"link\":\"%@\"}",  
                         SHKMyAppName, SHKMyAppURL];
    [params setObject:actions forKey:@"actions"];
    
	if (item.shareType == SHKShareTypeURL && item.URL)
	{
        NSString *url = [item.URL absoluteString];
        [params setObject:url forKey:@"link"];
        [params setObject:item.title forKey:@"name"];
        [params setObject:item.title == nil ? url : item.title
                   forKey:@"caption"];    
        if (item.text)
            [params setObject:item.text forKey:@"message"];
        NSString *pictureURI = [item customValueForKey:@"picture"];
        if (pictureURI)
            [params setObject:pictureURI forKey:@"picture"];
	}
Like I show, it will post the link and name, just doesn't show in the app before you click share.

appimage.png


wallimage.png
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.