Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to post on Facebook wall without opening Dialog?
    text
    copied!<p>I am trying to integrate facebook in my app. I had done code for login and trying to post on my wall but I don't need the facebook dialog. I want my own. after googling I found some code but its not working. It is not giving any error but not posting any thing...</p> <p>Here I am using is :</p> <pre><code>NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"Facebook developer Test Message",@"message", @"Test it!",@"name", nil]; Facebook *fb = [[Facebook alloc] init]; [fb requestWithGraphPath:@"me/feed" // or use page ID instead of 'me' andParams:params andHttpMethod:@"POST" andDelegate:self]; </code></pre> <p>Its not working..</p> <pre><code> FBStreamDialog *dialog = [[[FBStreamDialog alloc] init] autorelease]; dialog.userMessagePrompt = @"Enter your message:"; dialog.attachment = [NSString stringWithFormat:@"{\"name\":\"Facebook Connect for iPhone\",\"href\":\"http://developers.facebook.com/connect.phptab=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]; </code></pre> <p>This opens a dialog and ask me to type message and when I clicks It post the Data on my wall.</p> <p>I Had refferes following links for this </p> <p><a href="http://forum.developers.facebook.net/viewtopic.php?id=79466" rel="nofollow">http://forum.developers.facebook.net/viewtopic.php?id=79466</a></p> <p>Please tell me where I am doing mistake.</p> <p>Thanks </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload