使用 Graph API 在 Facebook Wall 中发布图片时出现问题
我正在使用 Facebook 的 Graph API,以便通过我的应用程序将消息和图片发布到用户的墙上。 我用的是这个:
$facebook->api('/me/feed',
'post',
array(
'access_token' => $token,
'message' => $message,
'caption' => $caption,
'description' => $description,
'picture' => $picture,
'cb' => ''
)
);
现在可以用 4-5 个月左右。突然发不了图了。我根本没有更改我的代码,但现在我看不到应该发布的图像。
我真的不知道是什么问题。我真的很感激任何帮助!
提前致谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
可能您需要使用 rawurlencode 来传递 google 图表 api url。因为它由许多特殊字符组成。
May be you need to use rawurlencode to pass google chart api url. As that consist of many special characters.
该提要仅允许您上传小图像。
尝试使用小图像,如果它有效,您可能需要将其发布为图像而不是墙贴。
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.