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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:45:02+00:00 2026-06-07T19:45:02+00:00

I have implemented exactly the code which is shown on this page: http://developers.facebook.com/docs/reference/dialogs/feed/ Problem:

  • 0

I have implemented exactly the code which is shown on this page:
http://developers.facebook.com/docs/reference/dialogs/feed/

Problem: All the fields in the object are filled correctly, and also posted correctly to facebook, except the picture.

<?php

if(isset($_POST['successmessage'])) {

    echo '<div class="info_message" style="margin:0 10px 10px 10px">
            <div style="float:left;display:inline;width:200px">
                <strong>'.$lang['checkout_text_42'].' '.$lang['checkout_text_43'].'</strong>
                <br>'.$lang['checkout_text_44'].'
            </div>
            <div style="float:left;display:inline">
                <a onclick="postToFeed(); return false;" style="cursor:pointer;float:left"><img src="images/post-design-to-fb.png" style="margin-top:4px"></a>
                <div id="msg" style="line-height:34px;float:left;margin-left:10px"></div>
            </div>
            <div style="clear:left"></div>
        </div>';

    ?>

    <div id='fb-root'></div>
    <script src='http://connect.facebook.net/<?php echo $locale; ?>/all.js'></script>
    <script> 
      FB.init({appId: "123455666777", status: true, cookie: true });

      function postToFeed() {

        // calling the API ...
        var obj = {
          method: 'feed',
          link: 'http://www.mydomain.com/configurator.php?id=<?php echo $_SESSION['sharetofb'];?>&lang=<?php echo $language;?>',
          picture: 'http://www.mydomain.com/images/designs/design-<?php echo $_SESSION['sharetofb'];?>.png',
          name: 'I just designed a DIY T-Shirt. Awesome!',
          caption: 'Click to check it out and customize it.',
          description: 'Choose from 500 different materials, colors, prints, shapes to assemble your unique custom T-Shirt.'
        };

        function callback(response) {

            if (response && response['post_id']) {
               document.getElementById('msg').innerHTML = "Your design was posted successfully!";
             } 

        }

        FB.ui(obj, callback);
      }

    </script>

    <?php

}

?>

If I use the Direct URL Example given on the above mentioned facebook doc and copy/paste the url into the browser (substituted with my App ID and URL and content), it also shows everything except the picture.

The strange thing is: It showed and posted the picture yesterday. However after several times of testing and posting and deleting the the test posts from my wall, it didn’t post the picture anymore.

I searched all the questions and answers here on stackoverflow and can exclude that it is a problem of having dashes in the picture url. I really cannot figure it out and are close to asuming that facebook is blocking post pictures if done too often??

Appreciate any hint which can lead me to the solution.

  • 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-07T19:45:03+00:00Added an answer on June 7, 2026 at 7:45 pm

    Have you tried to use a static picture? Is it working? Maybe it depends on the variable you pass to it.

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

Sidebar

Related Questions

I have implemented Facebook Connect into a HTML page exactly as the tutorial explains
I have implemented a custom ActionMapper which obtains the locale from the URI (the
I have implemented a small Windows Service which runs every 9 minutes and writes
I implemented Dynamic DataSource Routing for Spring+Hibernate according to this article . I have
I have the following piece of code which doesn't compile when I try to
This is in reference to the comments in this question : This code in
I'm trying to implement this project: http://img7.imagebanana.com/img/cnb46ti2/relationships.png I want to let view the skills
I want to fix warnings in my application code. I have an AddressBookModel.h which
I have implemented this function: static <X,Y> Y castOrNull(X obj) { try { return
If i have heterogeneous collection for which I know exactly the types i'm going

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.