通过Facebook App在用户墙上发布帖子 [英] Publishing a post on users' wall by facebook app

查看:77
本文介绍了通过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]/图片.您需要查询 https://graph.facebook.com/[用户 ID] 并解析JSON以获取其URL.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆