Android get result of Facebook sharing with OpenGraphAction -


hello i'm following facebook developer page share contents opengraph in android app:

       shareopengraphobject object = new shareopengraphobject.builder()                     .putstring("og:type", "article")                     .putstring("og:title", "smartdonor")                     .putstring("og:description", m.gettesto())                     .putstring("og:url", constants.url_social +                       md5(string.valueof(m.getidmessaggi())))                     .putstring("og:image", constants.url_folder_image_social + "icona_generica.png")                     .build();         shareopengraphaction action = new shareopengraphaction.builder()                 .setactiontype("news.publishes")                 .putobject("article", object)                 .build();          shareopengraphcontent content = new shareopengraphcontent.builder()                 .setpreviewpropertyname("article")                 .setaction(action)                 .build();              sharedialog.show(detailmessageactivity.this, content); 

it's ok question: possible, using sharedialog.show(), return information in app when sharing action over?

i'have seen in other discussions necessary user login:

shareapi.share(content, new facebookcallback<sharer.result>() {             @override             public void onsuccess(sharer.result result) {                 log.i("success", result.tostring());             }              @override             public void oncancel() {               }              @override             public void onerror(facebookexception error) {                 log.i("error", error.getmessage());              } 

thanks


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -