问题描述
我正在使用Facebook的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' => ''
)
);
现在可以正常工作约4-5个月.突然我无法发布图片.我根本没有更改代码,但是现在我看不到应该发布的图像.
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!
预先感谢
推荐答案
可能是您需要使用 rawurlencode 来传递Google图表api网址.因为它包含许多特殊字符.
May be you need to use rawurlencode to pass google chart api url. As that consist of many special characters.
这篇关于使用Graph API在Facebook Wall中发布图片的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!