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

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

问题描述

我的游戏中有一个Facebook的贴子按钮,但它不能正常运行(不是真的在做我想要的)。我已经把传递给api的参数搞乱了(Android facebook sdk):

  FacebookManager.this.mFacebook .request(我/ feed,params,POST); // params是Bundle 

但是我没有设法让它像我想要的那样工作。 p>

我想要的是如下(我不知道为什么它显示错误图像,但是可以说没有)





我知道RED消息是消息参数。关于休息 - 他们是什么?

解决方案

红色是消息。



黄色是图片 - 一个网址。



蓝色是链接 - 用户点击时重定向到哪里,名称 - 什么实际显示。



紫色是描述。



使用 facebook图表api explorer ,了解如何做到这一点。


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?

解决方案

The red is "message".

Yellow is "picture" - a url.

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

Purple is "description".

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

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

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