Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook links.post problem #35

Closed
veradismail opened this issue Jun 18, 2010 · 1 comment
Closed

Facebook links.post problem #35

veradismail opened this issue Jun 18, 2010 · 1 comment

Comments

@veradismail
Copy link

Hi,

links post not working.

Code:
Bundle parameters1 = new Bundle();
parameters1.putString("url", "http://google.com");
parameters1.putString("comment", "heelloo");
parameters1.putString("image", imgURL);
mFacebook.dialog(GetAllQuestions.this, "links.post", parameters1, new FBDialogListener());

Please help.

Thanks
veradis

@soneff
Copy link

soneff commented Jun 18, 2010

Links post is not supported by the dialog method yet, but you could make a call through the API to do it, e.g.

Bundle parameters = new Bundle();
parameters.putString("method", "stream.publish");
String attachments = URLEncoder.encode("{"name":"Name=Title","href":"http://www.google.fr/\",\"caption\":\"Caption\",\"description\":\"Description\",\"media\":[{\"type\":\"image\",\"src\":\"http://www.kratiroff.com/logo-facebook.jpg\",\"href\":\"http://developers.facebook.com/\"}],\"properties\":{\"another link":{"text":"Facebook homepage","href":"http://www.facebook.com\"}}}");
parameters.putString("attachment", attachments);
mAsyncRunner.request(parameters, new WallPostRequestListener());

Hope that helps...

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants