0

I am looking for a way to publish stuff on my facebook wall from a java-webservice.

I was looking around and found that there WAS offline_access that is now deprecated.

So... How can it be done?

Kara
  • 6,115
  • 16
  • 50
  • 57
user1365799
  • 83
  • 1
  • 10

1 Answers1

1

You have two options I can think of:

  1. Get a long lived user access token (using server-side authentication, or client-side and then extending the token) when the user interacts with you app, then you have a valid token for 60 days.
    When the 60 days are over you'll need the user to re-engage your app to get a new token.

  2. You can ask for the publish_stream permission and then using an app token you can post on the users' behalf:

App access tokens can also be used to publish content to Facebook on behalf of a user who has granted a publishing permission to your application.

App Access Tokens generally do not expire. Once generated, they are valid indefinitely.

Nitzan Tomer
  • 155,636
  • 47
  • 315
  • 299
  • You can [authenticate as a page](http://developers.facebook.com/docs/authentication/pages/) but I'm not sure if you can get a long lived token for pages, I've never tried. – Nitzan Tomer Jun 10 '12 at 06:36