Facebook图表api创建墙上张贴与上传图片 [英] facebook graph api create wall post with uploaded picture
问题描述
我正在按照以下步骤使用FB Graph API创建一个带有图片的墙贴:
I'm following these steps to create a wall post with a picture using the FB Graph API:
- 将图片上传到指定的文件夹(工作正常)
- >这将返回一个 id 和 post_id - 发送POST到 https://graph.facebook.com/me/feed 与以下参数:
- Upload the picture into a specified folder (working OK) -> this returns an id and a post_id
- Send a POST to https://graph.facebook.com/me/feed with the following parameters:
access_token - 我目前的access_token
access_token - my current access_token
message - 在照片上传之后,在步骤1中获得的简单消息,如hello
message - a simple message like "hello"
object_id -the post_id
object_id -the post_id obtained in step 1, after photo upload
帖子信息出现在墙上,但没有照片:
The post message appears on the wall, but there is no photo:
http://img545.imageshack.us/img545/1369/screenshot6ev.png
我做错了什么?
我的想法n我不想附加照片的链接。我想让图像出现时没有任何hiperlink,就像创建新帖子时手动上传的图像一样。
I mention that i don't want to attach a link to the photo. I want the image to appear without any hiperlink, like the ones that are manually uploaded when creating a new post.
推荐答案
object_attachment
而不是 object_id
。
查看文档这里: https://developers.facebook.com/docs/graph- api / reference / user / feed /
这篇关于Facebook图表api创建墙上张贴与上传图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!