Facebook app android post on wall - android

I registered an Android app with Facebook but I'm having a hard time posting on the user's wall and on the user's friends wall. For example, when I post to my own wall from the app, I'm the only one who can see the post. And when I post on any of my friend's wall, I get no errors but the post doesn't appear in his wall. The app asks for the permission "publish_stream" so in the beginning, I should be able to do it. I've thoroughly been searching on the Facebook documentation and on the web but I haven't found any solution to the problem. That's the code I execute to post:
//me
facebook.dialog(Activity, "feed", new PostDialogListener());
//friend of mine
Bundle params = new Bundle();
params.putString("to", "id_friend");
facebook.dialog(Activity, "feed", params new PostDialogListener());
Any comments would be highly appreciated.
Thanks in advance!

I found it. The problem was that sandbox was enabled in the app settings. Once I disabled it, I could post perfectly on my friends wall and on my own too.

Related

how to post message on facebook wall, I can login but can't post anything?

I can able to login, but facing difficulty in posting message on facebook wall. can somebody give me the possible resolutions?
check out the link below:
http://www.android10.org/index.php/articleslibraries/290-facebook-integration-in-your-android-application
Just, don't forget to add app ID in your code. And its the efficient code you can get...:)

I want to post a string msg on facebook's wall

I have my appId for facebook. Which type of configuration and auth should I require.
Now I want to post a String message on Facebook wall when some condition true. What should I do?
I am just giving you the first link i found on the search , take a look it, it has all the things you require...
http://blog.doityourselfandroid.com/2011/02/28/30-minute-guide-integrating-facebook-android-application/
Please go through below link . It might helps you a lot.
Facebook android sdk
you can also send message directly using the below code.
Bundle params = new Bundle();
params.putString("message", message);
mFacebook.request("me/feed", params, "POST");
you can create facebook object and using request method you can directly post to user wall. Before posting on wall you must have to login into facebook .
Checkout Facebook SDK for android
https://github.com/facebook/facebook-android-sdk
also Facebook Android Tutorial It will help you.
https://developers.facebook.com/docs/mobile/android/build/

Android post to facebook wall, stream.publish broken since few days

I have a lot of apps published using the FB android sdk
github.com/facebook/facebook-android-sdk
All my applications that use FB stopped working since few days.
This is necessarily a change or a bug from FB side, because nothing has changed in my applications, It worked for months.
The dialog that opens to post a message ("stream.publish") seems not use the param "message", the form opens but the text box is empty!
Bundle parameters = new Bundle();
parameters.putString("message", "test message");
mFacebook.dialog(Example.this, "stream.publish", parameters,new SampleDialogListener());
Using debug I saw the URL with the "message" param:
https://m.facebook.com/dialog/stream.publish?message=test+message&app_id=....
The text input in the webview is emtpy!
Somebody have an idea or a workaround to fix this issue?
Try "feed" instead of "stream.publish"
Had the same problem for the last few days. Looks like Facebook is deprecating the Stream API: http://developers.facebook.com/docs/reference/rest/stream.publish/, not sure if this has anything to do with that.
Anyway, switching to using the Graph API's 'feed' method worked for me.

Android post wall facebook dialog missing small icon

I have a wierd problem with integrating a basic "post to facebook feed" in my app.
The first time after you install the app and use the post to wall button everything works great.
But after that first run the small icon next to the " via APPNAME" is missing when i use the "post to wall" button, there is just a missing picture questionmark there instead.
Here is the facebook code(tried to keep it simple as i dont require any other facebook functionality in my app):
if (facebook == null)
facebook = new Facebook("<MY_APP_ID>");
//Creating the bumdle parameters with link, picture, name, caption and description
facebook.dialog(this, "feed", parameters, new DialogListener(){});
I have run into this in the EMU, but actually on facebook the APP ICON actually shows up fine.
I am testing to see if this is a device issue or an EMU issue, but you can rest assured that it posts to FB properly.

Facebook SDK Integration

Could someone post some example code for the Facebook authorize code for android. I've been at it for a while and I can't get it to work.
facebook = new Facebook(APP_ID);
facebook.authorize(this, new LoginDialogListener());
That's what I have.
Thanks
Download the SDK from GitHub and look at the sample app, it contains everything you need to get started and totally answers this question.

Categories

Resources