FBConnect Post To Wall Question

Discussion in 'iOS Programming' started by newtoiphonesdk, Aug 12, 2010.

  1. newtoiphonesdk
    Expand Collapse
    macrumors 6502a

    Joined:
    Jul 30, 2010
    #1
    I have FBConnect setup and I just have one last question. How can I autofill the post message part? To where they login and when it comes up with post to wall, it already has a message prefilled in? Here is my code for the post part so far
    Code:
    - (void)postToWall {
    	
    	FBStreamDialog *dialog = [[[FBStreamDialog alloc] init] autorelease];
    	dialog.userMessagePrompt = @"Enter Your Message Here:";
    	dialog.attachment = [NSString stringWithFormat:@"{\"name\":\"Facebook Connect for iPhone\",\"href\":\"http://developers.facebook.com/connect.php?tab=iphone\",\"caption\":\"Caption\",\"description\":\"Description\",\"media\":[{\"type\":\"image\",\"src\":\"http://img40.yfrog.com/img40/5914/iphoneconnectbtn.jpg\",\"href\":\"http://developers.facebook.com/connect.php?tab=iphone/\"}],\"properties\":{\"another link\":{\"text\":\"Facebook home page\",\"href\":\"http://www.facebook.com\"}}}"];
    	[dialog show];
    	
    }
    
     
  2. Anne R. Kist
    Expand Collapse
    macrumors newbie

    Joined:
    Aug 11, 2010
    Location:
    ...in the UK
    #2
    You can't.
     
  3. robbieduncan
    Expand Collapse
    Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #3
    I've not looked at the API at all but if FBStreamDialog is a subclass of UIView can you not get all it's subviews (and if required their subviews and so on) until you find the text input (I assume a UITextField) and add the text you want?
     
  4. newtoiphonesdk
    Expand Collapse
    thread starter macrumors 6502a

    Joined:
    Jul 30, 2010
    #4
    I know you can set a website to view on there as well, like how Engadget does with posting articles to Facebook. How do you set that up?
     
  5. Anne R. Kist
    Expand Collapse
    macrumors newbie

    Joined:
    Aug 11, 2010
    Location:
    ...in the UK
    #5
    Have we moved on from the prefilled message concern already?
     

Share This Page