Post pic on wall with message with Android Facebook SDK 3.0

后端 未结 2 582
星月不相逢
星月不相逢 2021-02-04 21:22

How can i post message along with Picture using Facebook SDK 3.0 on Android,

The link -> can post small pic with link and all other information.

http://developer

2条回答
  •  被撕碎了的回忆
    2021-02-04 21:50

    You can use the Graph API to post photos to a user's wall.

    See the reference page for more details.

    In the Facebook SDK, you would use the Request class to make Graph API calls.

    You can use the newUploadPhotoRequest method to add a photo.

    If you want to add a description as well, try setting the "message" parameter:

    Request photoRequest = Request.newUploadPhotoRequest(...);
    Bundle params = photoRequest.getParameters();
    params.putString("message", "description  goes here");
    photoRequest.executeAsync();
    

提交回复
热议问题