Facebook API - 如何做到这一点 [英] Facebook API - How to do that
问题描述
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屋!