发布在用户的朋友facebook墙壁通过android应用程序 [英] Post on user's friends facebook wall through android application

查看:89
本文介绍了发布在用户的朋友facebook墙壁通过android应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个 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(me)

facebookClient.request("me")

facebookClient.request(我/朋友)

facebookClient.request("me/friends")

我的查询是我想给予用户邀请的灵活性其facebook的朋友。
我不知道在这里做什么额外的东西。
任何帮助将不胜感激。

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.

推荐答案

查看:

如何使用Facebook android SDK发布在Facebook墙上,而不打开对话框

< a href =https://stackoverflow.com/questions/4883063/how-to-post-message-on-facebook-wall-using-facebook-android-sdk-integrate-android>如何在Facebook墙上发布消息使用Facebook Android SDK集成Android应用程序

这是一个小例子,将发布到朋友的墙上(或者如果userId为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天全站免登陆