1

After implementation of twitter in my app Now i try to implement Facebook for my app, and I found Facebook SDK for android I use that code for login, but problem is that I want to publish a msg on a buttons click without opening web-view. I found few links on this but no one works for me. I exactly want that same thing How to post on facebook wall using Facebook android SDK, without opening dialog box I use the answer for but it five following error...Even I have allow application to use my information.

Key description expected byte[] but value was a java.lang.String. The default value was returned.

01-24 10:37:33.567: DEBUG/Tests(479): got response: {"error":{"type":"OAuthException","message":"(#200) The user hasn't authorized the application to perform this action"}}

Community
  • 1
  • 1
Arslan
  • 11
  • 2

4 Answers4

1

Use the Android SDK and make sure to request the publish_stream permission.

Dhiren Patel
  • 645
  • 4
  • 6
0

use this SDK defenately heplful to u

https://github.com/facebook/facebook-android-sdk

Parag Chauhan
  • 35,760
  • 13
  • 86
  • 95
0

You need an auth token and use it with Graph API.
You can get the token via mFacebook.getAccessToken() method.
Assuming mFacebook is an authenticated Facebook instance (via authorize method)

maxcanna
  • 1,755
  • 2
  • 12
  • 15
0

You should have requested permission"message" when you called authorize on the Facebook object.

Regards stéphane

Snicolas
  • 37,840
  • 15
  • 114
  • 173