How can I implement Feed Dialog from Facebook in an Android application?

enter image description hereImplementing the Feed dialog box for publishing a Publish History in an Android application does not work. I downloaded the Facebook Android-sdk sample from the following link:

https://github.com/facebook/facebook-android-sdk/blob/master/README.md#dialogs

In case of a simple wallPost, my AppId works. But when I use this for the "Publish History" dialog, I get this message after logging in: An error has occurred with RomeFoodieGuide. Please try again later.

Even in a web browser, I get the same error message. Is there any work to make an AppId in my application.?

In a web browser, I use the link as follows: https://www.facebook.com/dialog/feed?app_id=118611694896804&redirect_uri=http://www.example.com/response/

In my application, I use the following link: " https://m.facebook.com/dialog/feed?app_id=123050457758183&redirect_uri=http://www.example.com/response/&display=touch "

+5
source share
3 answers
    facebook=your facebbook object;
    Bundle parameters = new Bundle();
    parameters.putString("description", "description about link");
    parameters.putString("picture","link of picture your want add with share post.");
    parameters.putString("link", "Link you want to share");
    parameters.putString("name","Name of link");
    parameters.putString("caption","describe your caption text");


    facebook.dialog(context,"feed",parameters,new DialogListener() {

        @Override
        public void onFacebookError(FacebookError arg0) {
        //Display your message for facebook error   

        }

        @Override
        public void onError(DialogError arg0) {
        //Display your message for error    

        }

        @Override
        public void onComplete(Bundle arg0) {
        //Display your message on share scuccessful

        }

        @Override
        public void onCancel() {
        //Display your message on dialog cancel

        }
    });
+6
source

fb, - mFacebook.dialog(Main.this, "feed", new SampleDialogListener());, this , .. , fb ( , fb ver )

+3

You do not need to explicitly provide the URL of the feed dialog box. You can use the SDK to display a dialog box. See https://developers.facebook.com/docs/reference/androidsdk/ for more information .

0
source

All Articles