Possible to provide a URL as an OpenGraph object in Facebook SDK 4 for Android -


i aware shareopengraphobject.builder() in sdk4 allows build open graph object hard coding values using .putstring("og:type", "books.book") etc...

but before sdk 4 update provide url represented object straight opengraphaction.settype() , publish story using opengraphactiondialogbuilder. not seem case anymore.

is there way dynamically build open graph story using url open graph object in facebook sdk 4 android?

you need use putstring() method on shareopengraphaction.builder():

shareopengraphaction action = new shareopengraphaction.builder()         .setactiontype("books.reads")         .putstring("book", "http://www.myserver.com/my_object_page")         .build(); shareopengraphcontent content = new shareopengraphcontent.builder()         .setpreviewpropertyname("book")         .setaction(action)         .build(); sharedialog.show(this, content); 

Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -