I am developing an android app and am using the Facebook Android SDK 3. I have used the following example to post open graph actions :
My object is a movie object and after every post, the activity log shows 2 things being posted :
<User> <my_action> a movie on Facebook
<User> posted a movie on Facebook
Is there a way I can only show up one action on the timeline :
<User> <my_action> a movie on Facebook
Showing up 2 for every one publish kinda comes out as story pollution for the user and not sure the user will really like this. Is there a way I can solve this ?
My Object creation code is :
private OpenGraphObject getFacebookMovieObject(Movie m) {
OpenGraphObject object = OpenGraphObject.Factory.createForPost(OpenGraphObject.class,
"video.movie", m.getTitle(), m.getImage(),
“http://www.themoviedb.org/movie/”+m.getId(),
m.getComments());
return object;
}
I also tried the below code:
private OpenGraphObject getFacebookMovieObject(Movie m) {
OpenGraphObject object = OpenGraphObject.Factory.createForPost("video.movie");
object.setProperty("title", m.getTitle());
object.setProperty("image", m.getImageLarge());
object.setProperty("url", "http://www.themoviedb.org/movie/"+m.Id());
object.setProperty("description", m.getComments());
return object;
}
Thanks :)