简体   繁体   中英

Facebook Connect Post Dialog Text?

HI I have got Facebook Connect working with a functional login and logout button. Also when I press a button I want to post to Facebook. I can do this, kind of. You see, I have a specified string that the user customizes before hand, it is called statusUpdates. I am not sure how to do this. Here is my current code for opening the dialog to post on Facebook.

I have tried this:

NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
     @"http://developers.facebook.com/docs/reference/dialogs/", @"link",
     @"http://fbrell.com/f8.jpg", @"picture",
     @"Facebook Dialogs", @"name",
     @"Reference Documentation", @"caption",
     @"Dialogs provide a simple, consistent interface for apps to interact with users.", 
     @"description",
     @"Facebook Dialogs are so easy!",  @"message",
nil];

in an IBAction where statusDefaults is a valid NSString. Now I already have statusDefaults, the string I want to put on the initial Facebook dialog text because right now when it opens it is totally empty. How do I do this, what should I modify?

actually thats not possible , i faced the same problem and i found this in Facebook documentation

This field are intended for users to express themselves. Pre-filling this field erodes the authenticity of the user voice.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM