问题
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.
来源:https://stackoverflow.com/questions/5535657/problem-with-post-a-picture-in-facebook-wall-with-graph-api