2

I have an Android game where I wish to publish to FB the user's result plus a link to the game itself. Since the "message" field is no longer available, how do I go about doing it?

I tried looking at the examples that come with the API but they were of little help.

A nice, simple example would be a real help.

Brad Larson
  • 170,088
  • 45
  • 397
  • 571
theblitz
  • 6,683
  • 16
  • 60
  • 114

2 Answers2

1

Take a look at https://developers.facebook.com/docs/reference/dialogs/feed/ and make your choice. As I have answered here: Problem in posting message on facebook wall using android facebook sdk

I would actually post a link and instead of using the message you could use the name, even caption if you would like. Using the name that will be the main text of the link. So you will still get a link to whatever you want.

Community
  • 1
  • 1
David Olsson
  • 8,085
  • 3
  • 30
  • 38
  • Problem is that the "message" parameter is no longer supported. I want to be able to post something like "I played this game and scored xxxxx points. Why not try it and see if you can beat me?". Then I want to add a link to my app. – theblitz Sep 04 '11 at 17:23
  • I just told you how you should do it. INSTEAD of using message use the "name" parameter. Read my answer again. – David Olsson Sep 04 '11 at 17:57
  • Ooops. Off to buy some new glasses! – theblitz Sep 04 '11 at 18:08
  • What does it mean when it says that the app_id is required, but "automatically specified by most SDKs". Should I register an application on FB and use that? – theblitz Sep 04 '11 at 18:23
  • Yes, you need to create a Facebook application, which will be used to post on the user's behalf (once user permits the application to do so). – Kon Sep 06 '11 at 22:32
0

AFAIK, this is still a valid solution: Post on user's friends facebook wall through android application

For own wall, you'd obviously use the "me" part in the request.

Community
  • 1
  • 1
Kon
  • 27,113
  • 11
  • 60
  • 86