How To Post On Facebook Page's Wall In Android?
Hi I want to post any message or link to an Facebook page.What I have tried is this. void postInfo() { try { Bundle parameters = new Bundle();
Solution 1:
Facebook has changed all it's profiles to timelines now. Any facebook page will show posts by others as "Recent Posts by Others on MyApp Page". This behavior is controlled by facebook and not by your app. There is nothing you can do in this case.
Solution 2:
Try this :
voidpostInfo()
{
try
{
Bundle parameters = newBundle();
parameters.putString("message", messageFacebook);
parameters.putString("name", "Test Name");
parameters.putString("link", "http://www.mylink.com/");
parameters.putString("picture", imageUrl);
parameters.putString("display", "page");
facebook.dialog(this, "stream.publish", params,
newDialogListener() {
publicvoidonFacebookError(FacebookError e) {
e.printStackTrace();
}
publicvoidonError(DialogError e) {
// TODO Auto-generated method stub
e.printStackTrace();
}
publicvoidonComplete(Bundle values) {
}
publicvoidonCancel() {
}
});
} catch (MalformedURLException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
}
Post a Comment for "How To Post On Facebook Page's Wall In Android?"