Facebook的API - 如何做到这一点 [英] Facebook API - How to do that

查看:145
本文介绍了Facebook的API - 如何做到这一点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Facebook发布按钮,在我的游戏,但它不能正常工作(不真正做我想要的)。我搞砸周围传递给API调用我这样(的Andr​​oid的Facebook SDK)中的参数:

I have a facebook post button in my game, but its not functioning correctly (Not really doing what I want). I have messed around with the parameters passed to the api I call this way (Android facebook sdk):

FacebookManager.this.mFacebook.request("me/feed", params, "POST"); //params is Bundle

但我没能令其功能像我想要的。

But I didn't manage to make it function as I want.

我想是这样(我不知道为什么它会显示错误的图像,击打让说,它没有)

What I want is like the following (I don't know why it shows error image, buts lets say it did not)

我知道,红色消息是消息参数。关于其余的 - 他们是什么

I know that the RED message is the "message" parameter. About the rest - what are they?

推荐答案

红色的是信息。

黄色是图片 - 一个网址

Yellow is "picture" - a url.

蓝既是链接 - 哪里去重定向用户点击时,与名 - 什么实际显示

Blue is both "link" - where to go redirect when user clicks, and "name" - whats actually displayed.

紫色是说明。

使用 Facebook的图形API资源管理器,以了解如何做到这一点。

Used the facebook graph api explorer to find out how to do so.

这篇关于Facebook的API - 如何做到这一点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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