Problem with post a picture in Facebook Wall with

2019-08-27 02:29发布

问题:

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

回答1:

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



回答2:

The feed will only allow you to upload small images. Try a small image, if it works your probably need to post as image instead of wall post.