Reputation: 1553
I want to post something on the user wall. I used the below code to post on the user wall but I'm getting a blank screen as soon as I log in. Can anyone help out?
(void) fbDidLogin {
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject:[facebook accessToken] forKey:@"FBAccessTokenKey"];
[defaults setObject:[facebook expirationDate] forKey:@"FBExpirationDateKey"];
[defaults synchronize];
NSString *kAppId;
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
kAppId, @"109133762519851",
@"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];
[facebook dialog:@"feed" andParams:params andDelegate:self];
Upvotes: 0
Views: 2160
Reputation: 1790
Did u try with
[facebook dialog: @"stream.publish" andParams: params andDelegate:self];
http://thinkdiff.net/facebook/how-to-develop-facebook-application-for-iphone/
Upvotes: 1
Reputation: 6392
See if you can make use of this:
https://github.com/facebook/facebook-ios-sdk
Upvotes: 1