hi i am implementing the facebook share dialog for android sdk 3.5 however i am not getting any success im following the guides..
FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(MyClass.this)
.setApplicationName("App Name")
.setName("Name")
.setLink("mylink")
.build();
i put this inside my on touch method there are no errors appearing but whenever i click the button.. nothing appears also~
is the MyClass.this wrong? thanks for reply~
This is what Facebook recommends. I've just copied the code examples from this link where it is also explained how to handle the
uiHelper
instance.If you don't care about the results of the dialog it might be ok not to use the uiHelper.
Using the static method to check whether the dialog can be presented is prudent because it only initializes the builder and creates the dialog if it really is possible to present it.
And this is the feed dialog fallback:
I had this exact problem, it turned out I forgot to add
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/app_id"/>
before the</application>
tag in my AndroidManifest.xml.Please look at this: This is a useful link https://gist.github.com/jacklt/6700201