Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8161883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:35:34+00:00 2026-06-06T18:35:34+00:00

This question has frequently been asked over stackoverflow.com but none of the answers work

  • 0

This question has frequently been asked over stackoverflow.com but none of the answers work for me. What i need to do is to post on the wall of user’s friend from within my app. I have included stream_publish to the list of permissions so it must work but it doesn’t.

What i have already tried is:

NSMutableDictionary* params = [NSMutableDictionary dictionary];
[params setObject:@"Some text" forKey:@"user_message_prompt"];
[params setObject:@"another text" forKey:@"action_links"];
[params setObject:@"Yet another text" forKey:@"attachment"];
[params setObject:@"1234567890" forKey:@"target_id"];

[facebook dialog: @"stream.publish"
       andParams: params
     andDelegate: self];

but when the dialog window pops up it tell me “An error occured with MyAppName. Please try again later.”

Also i tried

[facebook requestWithGraphPath:@"[1234567890]/feed"
andParams:[NSMutableDictionary dictionaryWithObject:@"test wall post" forKey:@"message"]
andHttpMethod:@"POST"
andDelegate:self];

but it just does nothing. What am i doing wrong? Can anyone correct me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:35:35+00:00Added an answer on June 6, 2026 at 6:35 pm

    This is how i solved it. The problem was incorrect parameters for action links.

    SBJSON *jsonWriter = [[SBJSON new] autorelease];
    
    NSMutableDictionary* params = [NSMutableDictionary dictionary];
    [params setObject:FB_APP_ID forKey:@"api_key"];
    [params setObject:@"User message prompt" forKey:@"user_message_prompt"];
    
    [params setObject:@"531370682" forKey:@"target_id"];
    
    NSArray *actionLnks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys:@"Action Links", @"text", @"http://football.ua",@"href", nil], nil];
    NSString *actionStr = [jsonWriter stringWithObject:actionLnks];
    
    NSDictionary* attachment = [NSDictionary dictionaryWithObjectsAndKeys:
                                @"Attachment name", @"name",
                                @"Attachment caption", @"caption",
                                @"Attachment description", @"description",
                                @"http://football.ua", @"href", nil];
    NSString *attachmentStr = [jsonWriter stringWithObject:attachment];
    
    [params setObject:actionStr forKey:@"action_links"];
    [params setObject:attachmentStr forKey:@"attachment"];
    
    [facebook dialog: @"stream.publish"
           andParams: params
         andDelegate: self];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question has been asked before but i still don't understand it fully so
this question has probably been asked before, but i'm stuck and i've tried a
This question has been asked in a C++ context but I'm curious about Java.
This question has been bugging me for a long time now but essentially I'm
This has probably been asked before, but a quick search only brought up the
This question has already been addressed but I would like to see some PHP
This has to be a frequent question, but not on SO yet, so it
This seems like a straightforward question, but I haven't had any good answers from
ok, this has been addressed by everybody, but yet I feel no closer to
This question has developed off an answer here . My question therefore is what

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.