什么是 dnndev.me? (React Native 在 Facebook 上的分享 link 显示为 dnndev.me)

What is dnndev.me? (React Native Share link on Facebook shows as dnndev.me)

我目前正在开发一个简单的共享功能,我可以通过 URL(即 https://www.nrps.nl/Nieuws/Nieuwsitem.aspx?ID=812)共享新闻文章。为此,我正在使用 React Native Share(下面的代码)。在 Facebook 上分享时,它显示为 dnndev.me 而不是 nrps.nl,这正是我所期望的。单击 dnndev.me link 重定向到 https://www.nrps.nl/Nieuws/Nieuwsitem.aspx?ID=812&fbclid=IwAR3Eq-j1wX8GUVvSEvhFNu85k8U_vjmV0l4_ycF-AUhoV61YBIieRGJgQg4 而不是 https://www.nrps.nl/Nieuws/Nieuwsitem.aspx?ID=812,但内容是相同的。 (如果我不应该显示任何这些,请将其编辑掉。我不知道额外的字符串是什么意思)

据我所知,dnndev.me 似乎是一个开发环境。 问题:

  1. 除了某种主机之外,dnndev.me 是什么?

  2. 我可以做任何事情来解决它显示为 dnndev.me 还是我可以只通知 NRPS 他们还没有这样做?

注册码:

let message = `${news.Title}\n${news.Image}\n${news.MessageUrl}`

news.title 是一个简单的字符串。 news.image 是图像的 URL,news.MessageUrl 是新闻文章本身的 URL。我仅使用 MessageUrl 对其进行了测试,结果相同。

 try {
  const result = await Share.share({
    message: `${message}`,
  });
  if (result.action === Share.sharedAction) {
    if (result.activityType) {
      // shared with activity type of result.activityType
    } else {
      // shared
    }
  } else if (result.action === Share.dismissedAction) {
    // dismissed
    console.log("Sharing dismissed")
  }
} catch (e) {
  console.log(e);
}

编辑:

我想要发生的事情是让自动生成的方形/内容字段(或者它的名称)如下所示:

https://imgur.com/EalEbmZ

dnndev.me 是一个网络服务器。作为一个web服务器,它通知facebook在管理和操作facebook数据的任何问题,也解决任何问题。

webSite of dnndev.me 而现有参数后面的fbclid是访客跟踪系统ID。

The acronym for fbclid is: "Facebook Click Identifier". It means a Facebook click identifier.

大约 Facebook 次点击。 这些是为了从该数据中准确统计而引入的参数。 我们还将与 Google AnnalysisAdSense 交换数据。 更准确地估计访问者。

要分享Facebook,您可以使用以下模块来解决它:这个解决方案包含在Facebook开发者的官方文档中。

  1. $yarn add react-native-fbsdk or npm install --save react-native-fbsdk
  2. $ react-native link react-native-fbsdk

注意 iOS 使用 cocoapods,运行:

  1. $ cd ios/ && pod install

用法

import { ShareDialog } from 'react-native-fbsdk';
let message = `${news.Title}\n${news.Image}\n${news.MessageUrl}`
const shareLinkContent = {
         contentType: 'link',
          contentUrl: "https://www.nrps.nl/Nieuws/Nieuwsitem.aspx?ID=812",
  contentDescription: message,
};
...
this.state = {shareLinkContent: shareLinkContent,};
...
shareLinkWithShareDialog() {
  var tmp = this;
  ShareDialog.canShow(this.state.shareLinkContent).then(
    function(canShow) {
      if (canShow) {
        return ShareDialog.show(tmp.state.shareLinkContent);
      }
    }
  ).then(
    function(result) {
      if (result.isCancelled) {
        alert('Share operation was cancelled');
      } else {
        alert('Share was successful with postId: '
          + result.postId);
      }
    },
    function(error) {
      alert('Share failed with error: ' + error.message);
    }
  );
}