简体   繁体   English

Facebook SDK,如何在iOS上隐藏“共享”标题?

[英]Facebook SDK, how to hide “Share” title on iOS?

In my Unity3D application for iOS I want to share some info in Facebook. 在我的iOS版Unity3D应用程序中,我想在Facebook中共享一些信息。 So I have used FB.ShareLink() method in this situation. 因此,在这种情况下,我使用了FB.ShareLink()方法。

But when it shows Share dialog there are two buttons Cancel at the left side and Share at the right side, also there is a title with "Share" text. 但是,当显示“共享”对话框时,左侧有两个“取消”按钮,右侧有“共享”按钮,还有一个标题为“共享”的标题。

How can I delete or hide that "Share" title in the middle of the window? 如何删除或隐藏窗口中间的“共享”标题? 在此处输入图片说明

    public override void ShareLink(
        Uri contentURL,
        string contentTitle,
        string contentDescription,
        Uri photoURL,
        FacebookDelegate<IShareResult> callback)
    {
        MethodArguments args = new MethodArguments();
        args.AddUri("content_url", contentURL);
        args.AddString("content_title", contentTitle);
        args.AddString("content_description", contentDescription);
        args.AddUri("photo_url", photoURL);
        var shareLinkCall = new JavaMethodCall<IShareResult>(this, "ShareLink");
        shareLinkCall.Callback = callback;
        shareLinkCall.Call(args);
    }

This is the code that Facebook use for sharing on Android in Facebook Unity SDK. 这是Facebook在Facebook Unity SDK中用于Android上共享的代码。 As I see, there is no way to modify share gui from unity plugin, because all of this processes are completed in java classes. 如我所见,无法从unity插件修改share gui,因为所有这些过程都是在java类中完成的。

Edit: For editing an external .jar file look at this topic: I have an external executable jar file that I wish to edit the java files in it with Eclipse 编辑:要编辑外部.jar文件,请查看以下主题: 我有一个外部可执行jar文件,我希望使用Eclipse在其中编辑Java文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM