如何在Facebook墙上发布最高分(android + facebook) [英] how to post highest score in facebook wall (android + facebook)

查看:133
本文介绍了如何在Facebook墙上发布最高分(android + facebook)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个与facebook api集成的android游戏。怎么可以将我的分数在游戏中发布到Facebook墙上。



我看着开放式图表,但无法弄清楚如何使其工作。



干杯,
T_T

解决方案

这是我使用的代码:

  final Bundle params = new Bundle(); 
params.putString(message,在用户墙上显示的消息);
params.putString(picture,picture url);
params.putString(link,link - (我把市场链接在这里));
params.putString(name,Link name);
params.putString(description,link the link);

然后调用:

  this.mFacebook.request(me / feed,params,POST); 

您可以阅读更多 here


I am developing an android game integrated with facebook api. how can is post my score in game to facebook wall.

I looked at open graph but could not figure out how to make it work.

Cheers, T_T

解决方案

That's the code I use:

    final Bundle params = new Bundle();
    params.putString("message", "message to show on the user's wall");
    params.putString("picture", "picture url");
    params.putString("link", "link - (I put market link here)");
    params.putString("name", "Link name");
    params.putString("description", "description bellow the link");

Then call:

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

You can read more here.

这篇关于如何在Facebook墙上发布最高分(android + facebook)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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