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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:49:53+00:00 2026-05-25T11:49:53+00:00

Trying to post an image along with wall post was working fine for couple

  • 0

Trying to post an image along with wall post was working fine for couple of months with the following code. Suddenly it stopped working.

When I test it with https it doesn’t work but in http it works.

The APP URL is using https if the protocol is https and http otherwise.

$protocol = "http";
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']!="off")
    $protocol = "https";

define("CANVAS_URL","$protocol://apps.facebook.com/appname/");
define("APP_URL","$protocol://domain.com/content/appname/live/");

FB.ui(
        {

         method: 'feed',
         name: 'my app name',
         link: <? echo "'".CANVAS_URL."'";?>,
         picture: <? echo "'".APP_URL."'";?>+image,
         caption: _caption,
         description: _description
       }, function(response) {
         if (response && response.post_id) 
         {
           // published
         } else {
           // not published
         }
       }
    );
  • 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-25T11:49:54+00:00Added an answer on May 25, 2026 at 11:49 am

    Try not using an SSL URL to get the image (but still using it for your linked CANVAS_URL). Facebook proxies the image requests it shows to users, so even if you’re serving it from a non-SSL URL, the image used within Facebook will reach users over SSL.

    As to why the SSL URL isn’t working, it could be that the crawler used by Facebook to retrieve the image doesn’t recognize the certificate chain you’re using. Yours worked fine for me in a browser, but when retrieving via wget on a Linux command line (likely a closer environment to FB’s crawler than a browser is), there’s a failure to verify the certificate.

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

Sidebar

Related Questions

i'm trying to post an image to my users's facebook wall once they hit
I am trying to post an image and a text to a friend's wall.
I'm trying to post some code on a blog using the pre tag. Something
I am trying to upload an image to a PHP page along with some
I am trying to POST an image to imageshack using their API and Play
I am trying to post an image to an album on facebook and place
I am trying to use this answer from an old post: Display image from
I'm having many problems trying to load an image file (PIXELIMAGEFORMAT). The code does
I am trying to upload an image to a server along with some JSON
Im trying to write optimized code for accesing image pixels and need to make

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.