r.bhardwaj
r.bhardwaj

Reputation: 1613

Facebook SDK Graph API posting message on the wall

My Facebook app's Status and Review feedback suggests not to pre-fill text while posting on wall. But I can found the use of message param in the Facebook Graph API documentation Graph API Publishing section.

Bundle params = new Bundle();
params.putString("message", "This is a test message");
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/me/feed",
    params,
    HttpMethod.POST,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();


I have verified it and it works fine. Is it allowed as per updated Facebook policies ?

Upvotes: 1

Views: 1215

Answers (1)

andyrandy
andyrandy

Reputation: 74014

The message must be 100% user generated, so if you present an (EMPTY!) input field where the user can enter the message before you do the API call, it´s fine. Prefilling means that you prefill the message or the input field, which is not allowed.

https://developers.facebook.com/docs/apps/review/prefill

Upvotes: 2

Related Questions