Reputation: 11
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"}}
Upvotes: 1
Views: 1556
Reputation: 645
Use the Android SDK and make sure to request the publish_stream
permission.
Upvotes: 1
Reputation: 38168
You should have requested permission"message" when you called authorize on the Facebook object.
Regards stéphane
Upvotes: 0
Reputation: 1765
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)
Upvotes: 0
Reputation: 35946
use this SDK defenately heplful to u
https://github.com/facebook/facebook-android-sdk
Upvotes: 0