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 6704951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:20:51+00:00 2026-05-26T07:20:51+00:00

I am having trouble getting code correct to have user (of my app) post

  • 0

I am having trouble getting code correct to have user (of my app) post to friend’s wall. I want user to be able to pick single friend and post to thier stream. What am I missing to have the user select 1 friend from list, or type friends name? This is my “post” function that I can’t get to work. It works when the method is ‘feed’ to post to the user’s wall. But method as ‘stream.publish’ it still functions like ‘feed’ and posts to user’s wall.

     function pubStream(obj,gift_id,item_name)
     {
     FB.ui({
            method: 'stream.publish',
            display: 'popup',     //have tried display:iframe does same             
            name: "Special Delivery!",
            link: "<?php echo $app_info['transfer_protocol']; ?>apps.facebook.com/<?php echo $app_info['canvas']; ?>/?friendID="+facebook_id+"&giftID="+gift_id,
            picture: "<?php echo $app_info['upload_url']; ?>"+obj,
            caption: "//not used at this time ",
            description: "my item escription",
            message: "user's message ",
            actions: {"name":"my items name","link":"<?php echo $app_info['transfer_protocol']; ?>apps.facebook.com/<?php echo $app_info['canvas']; ?>/?friendID="+facebook_id+"&giftID="+gift_id}
    },function(response){hideLightbox();});
  }
  • 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-05-26T07:20:52+00:00Added an answer on May 26, 2026 at 7:20 am

    It looks like you’re looking for the ‘send’ User Interface.

    There are docs on this here:
    https://developers.facebook.com/docs/reference/dialogs/send/

    It’s practically the same code as your feed dialog, except the user can specify which friends they want to communicate it to.

    Assuming your code is correct this would work:

    function pubStream(obj,gift_id,item_name)
         {
         FB.ui({
                method: 'send',
                display: 'popup',     //have tried display:iframe does same             
                name: "Special Delivery!",
                link: "<?php echo $app_info['transfer_protocol']; ?>apps.facebook.com/<?php echo $app_info['canvas']; ?>/?friendID="+facebook_id+"&giftID="+gift_id,
                picture: "<?php echo $app_info['upload_url']; ?>"+obj,
                caption: "//not used at this time ",
                description: "my item escription",
                message: "user's message ",
                actions: {"name":"my items name","link":"<?php echo $app_info['transfer_protocol']; ?>apps.facebook.com/<?php echo $app_info['canvas']; ?>/?friendID="+facebook_id+"&giftID="+gift_id}
        },function(response){hideLightbox();});
      }
    

    You just choose method: 'send' and then use the properties shown on the ‘feed’ documentation, here: http://developers.facebook.com/docs/reference/dialogs/feed/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with some excel code that I am having trouble getting
Having trouble with the following segment of code. I'm getting a parameter count mismatch.
I'm having trouble getting a rails app on Dreamhost's Passenger to see compiled libraries
I'm having trouble getting in touch with SQL Server Managemen Studio 2008! I want
I'm using Grails 2.0, and I'm having trouble getting the code to recognize an
I'm having some trouble getting the code statement beneath to work as intended. The
I'm having trouble getting my ASPX-App to work on the productive server. As my
I'm having trouble getting this code to set the prompt: // Create a PeoplePicker
I am having trouble getting correct frustum culling to work. I got a great
I'm using jQuery 1.3.2. I'm having trouble getting a correct height in Internet Explorer

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.