通过Facebook App在用户墙上发布帖子 [英] Publishing a post on users' wall by facebook app
问题描述
我需要从facebook用户个人资料图片生成图片并将其发布到某些用户的墙上.例如,
$ attch = array('media'=> array((array('type'=>'image',
'src'=>' https://graph.facebook.com/'.$ uid.'/图片",
'href'=>' https://graph.facebook.com/'.$ uid.'/图片/'))));
I need to generate a picture from facebook user profile picture and post it to some users' walls. For instance,
$attch = array( 'media' => array((array('type' => 'image',
'src' => 'https://graph.facebook.com/'.$uid.'/picture',
'href' => 'https://graph.facebook.com/'.$uid.'/picture/')));
'src'=>' https://graph.facebook.com/'.$ uid ./图片行未显示任何图片...
'src' => 'https://graph.facebook.com/'.$uid.'/picture' line doesn't show any picture...
我该如何解决?
谢谢
推荐答案
我在您的
未显示图片,因为
什么都没有
https://graph.facebook.com/[user
id]/图片.您需要查询
It's not showing a picture because there's nothing at https://graph.facebook.com/[user id]/picture. You need to query https://graph.facebook.com/[user id] and parse the JSON to get its URL.
这篇关于通过Facebook App在用户墙上发布帖子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!