发表于用户的好友的Facebook墙上,通过Android应用 [英] Post on user's friends facebook wall through android application

查看:126
本文介绍了发表于用户的好友的Facebook墙上,通过Android应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个机器人应用程序中使用其Facebook ID进行登录。 我可以得到所有关于用户的信息,我甚至得到了好友列表如下方法

I am developing an Android application in which the user logs in using its facebook id. I can get all the information about the user and i even get its friends list with following methods

facebookClient.request(我)

facebookClient.request("me")

facebookClient.request(我的/朋友)

facebookClient.request("me/friends")

我的查询是我想给的灵活性,用户可以邀请其Facebook好友。 我不知道什么多余的东西就是在这里完成。 任何帮助将AP preciated。

My query is that i want to give flexibility to the user to invite its facebook friends. I dont know what extra stuff is to be done here. Any help will be appreciated.

推荐答案

查看:

<一个href="http://stackoverflow.com/questions/4213767/how-to-post-on-facebook-wall-using-facebook-android-sdk-without-opening-dialog-b">How张贴在Facebook墙上使用Facebook的Andr​​oid SDK中,而无需打开对话框

<一个href="http://stackoverflow.com/questions/4883063/how-to-post-message-on-facebook-wall-using-facebook-android-sdk-integrate-android">How使用Facebook的Andr​​oid SDK中集成的Andr​​oid应用发布消息在Facebook上墙

How to post message on facebook wall using Facebook android SDK integrate android app

下面是一个小例子,将张贴到朋友的墙上(或者,如果用户id为null,则对当前登录用户的墙):

Here's a small example that will post to a friend's wall (or if userId is null then to the currently logged in user's wall):

protected void postToWall(String userId)
{
    Bundle params = new Bundle();
    params.putString("message", _messageInput.getText().toString());
    params.putString("caption", "{*actor*} just posted a secret message.");
    params.putString("description", "A secret message is waiting for you.  Click the link to decode it.");
    params.putString("name", "A Secret Message For You");
    params.putString("picture", "http://www.kxminteractive.com/Content/images/app_logos/secretMessage.png");
    params.putString("link", "http://www.kxminteractive.com/decrypt/" + _lookupKey);        

    asyncRunner.request(((userId == null) ? "me" : userId) + "/feed", params, "POST", new WallPostRequestListener());       
}

这篇关于发表于用户的好友的Facebook墙上,通过Android应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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