Facebook post in group wall using Graph API

I'm developing a android application which is requires posting in groups created by the user.

Bundle params = new Bundle();
params.putString("message","Group Message");

try {
  String res =    fb.request(GROUP_ID+"/feed",params);

} catch (MalformedURLException e) {

 } catch (IOException e) {


Also i'm using the following permissions,

public static final String[] permissions = {"user_photos","friends_groups","read_stream","user_groups","publish_stream"};

But when i execute this, no exception is raised and the post is not made in the group's wall.

When i tried to create @Mentions using, @[user_id:name] i'm not even getting the hyperlinks.

Can anyone help me in solving the above said two issues.



By default, the fb.request method uses a GET request. As you are intending to create a new post, you need to use the POST method. Doing this is simple - just pass a third argument (httpMethod) as "POST".

For example: String res = fb.request(GROUP_ID+"/feed",params,"POST");

For more info: https://developers.facebook.com/docs/reference/androidsdk/ayncrequest/

Also, the first argument needs to be a full URL, not just an ID - https://graph.facebook.com/GROUP_ID/feed

Of course, I'm making an assumption based on your variable name.

Need Your Help

modifying a sliding javascript div

javascript jquery html popup

I got some code off the net to make a box slide in. However it slid in from the top left and I wanted it to slide in from the bottom. I changed the css position from top:-200px to bottom:-200px and

mod_rewrite not redirecting from nonexistant files

apache .htaccess mod-rewrite redirect http-status-code-404

I am running into problems redirecting pages with mod_rewrite. The redirects work only as long as the original page remains on the server. Once I delete the page, attempts to access the URL result ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.