图片发布不再适用于 facebook Graph API
图片发布不适用于 Facebook Graph API
消息已发布,但图片未发布。
我正在使用 Graph API 在 Facebook 上发布信息。
我的代码在发布图片时工作正常,但不再发布图片了!
以下是 CURL 参数:
我发布到 URL: https://graph.facebook.com/ID/feed
和 POST 参数是:
access_token=TheToken&message=My+Message&picture=ImgUrl
其中: access_token 是有效的访问令牌 message 是要显示在墙上的消息 picture 是与要在墙上显示的消息关联的图像
The ID is valid and access_token is valid.
任何帮助都值得赞赏,Facebook 似乎因在不通知接口站点的情况下更改其 API 而臭名昭著!
Picture posting NOT working with Facebook Graph API
The message is posted but the picture is NOT.
I am using the Graph API to post to the wall on Facebook.
My code was working fine posting the picture but is NOT posting picture anymore!
Here are the CURL parameters:
I am posting to URL: https://graph.facebook.com/ID/feed
and the POST parameters are:
access_token=TheToken&message=My+Message&picture=ImgUrl
where:
access_token is a valid access token
message is the message to display on the wall
picture is the image associated with the message to display on the wall
The ID is valid and access_token is valid.
Any help is appreciated, Facebook seems to be notorious in changing their API without informing interfacing sites!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我在通过 PHP 使用图形 api 发布时遇到了同样的问题。不知道原因是什么,但我的图像 URL 包含一个 - 符号(http://the.url/to/the-image.jpg)。
重命名图像后,一切都按预期进行。
你的图片网址是什么?
I had the same problem when posting using the graph api via PHP. Dont know what the cause what, but my image URLs contained a - sign (http://the.url/to/the-image.jpg).
After renaming the images, everything worked as expected.
What is your image url?
我使用 LINK 参数而不是 PICTURE 参数,现在一切似乎都正常。 Facebook 更改了有关 PICTURE 参数的内容,使其停止工作。我没有更改系统上的任何代码,它只是停止工作。请参阅http://developers.facebook.com/docs/reference/api/post/< /a>
I used the LINK parameter instead of the PICTURE parameter and all seems to be working now. Facebook changed something in regards to the PICTURE parameter where it stopped working. I did NOT change any code on my system and it just stopped working. See http://developers.facebook.com/docs/reference/api/post/
Ken,但是如果您希望 link= 指向其他内容怎么办?这有效:
您可以在以下位置查看结果: https://www.facebook.com/pages/月亮/215958041750734
Ken, but what if you want link= to point to something else? this works:
you can see result at: https://www.facebook.com/pages/The-Moon/215958041750734
使用源参数对我有用:
works for me using source parameter:
发布图片对我有用,但不知何故包含源(swf)会导致图片不再显示。这过去一直有效,直到上周。
Posting picture works for me but somehow including a source (swf) causes the picture to not display anymore. This used to work until last week.
等等
我注意到 Facebook 处理图片(最多 15 分钟)比在时间轴上发布链接(即时)花费更多的时间。
Wait for it
I noticed that it takes more time for Facebook to process the picture (up to 15 minutes) than to post the link on the timeline (instant).