Search code examples
facebookfacebook-graph-apifacebook-php-sdkfacebook-wall

Problem with post a picture in Facebook Wall with Graph API


I am using the Graph API for Facebook in order to post a message and a picture through my application to the user's wall. I use this one:

$facebook->api('/me/feed', 
               'post', 
               array( 
                 'access_token' => $token, 
                 'message' => $message, 
                 'caption' => $caption, 
                 'description' => $description, 
                 'picture' => $picture, 
                 'cb' => ''
                )
              );

This works fine for around 4-5 months now. Suddenly I cannot post the picture. I haven't changed my code at all, but now I cannot see the image that is supposed to be posted.

I really don't know what is the problem. I would really appreciate any help!

Thanks in advance


Solution

  • May be you need to use rawurlencode to pass google chart api url. As that consist of many special characters.