本文介绍了如何使用facebook延迟深度链接功能进行新安装,并在将iOS应用程序发布到appStore之前进行测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经做了一些探索,发现了以下事情,这是我迄今为止所做的:


  1. 实现了自定义的URL - myApp://

  2. 添加了FacebookAppID,显示名称到我的info.plist文件

  3. 包括Facebook SDK

  4. 通过Facebook移动主机API创建Facebook应用程序链接,并获得类似的URL:
    https://fb.me/1601524146753610

  5. 将上述url用作深层链接,同时创建应用安装广告。

  6. 在我的AppDelegate.m中实现以下功能

     code>  - (BOOL)应用程序:(UIApplication *)应用程序openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication注释:(id)注释


  7. 在AppDelegate.m中添加以下代码

      //初始化
    [FBAppEvents activateApp];
    [FBSettings setClientToken:@ca45a3a2133ae2f37ebd4d90408816e6];

    //检查延迟深层链接的功能,并调用接收到的URL的方法
    [FBSDKAppLinkUtility fetchDeferredAppLink:^(NSURL * url,NSError * error){
    if(url )
    [self application:nil openURL:url sourceApplication:nil annotation:nil];
    }];


请让我知道,如果我错过了一些东西在提取延迟深层链接。另外,在将iOS App发布到appStore 之前,如何进行测试?

解决方案

报道了相同的Facebook支持,他们说上述步骤是正确的,以实现延迟深层链接功能。



同样可以测试如下: / p>


  1. 访问


  2. 选择您的应用,然后点击提交'。


  3. 在底部,您将在开发工具下找到Deep Link Tester。
    点击测试深层链接,并在对话框中输入您的深层链接进行测试。


  4. 如果要验证延迟链接,请选中发送延迟'在对话框中。

所以,这样做后,你需要卸载该应用程序(如果已经存在),然后从应用商店。
您将在其中测试的设备应安装Facebook应用程序,并从您从应用程式广告助手发送延迟深层链接请求的帐户登录。



现在,当您打开应用程序时,您应该能够看到您的延迟深层链接功能正常工作。



上述步骤对我有用。 / p>

I have done some exploration and have found the following things, this is what i have done so far:

  1. Implemented custom url like-- myApp://
  2. Added FacebookAppID,display name to my info.plist file
  3. Included the Facebook SDK
  4. Created Facebook app link through Facebook mobile hosting API and got the url something like :https://fb.me/1601524146753610
  5. Used the above url as deep link while creating app-install Ads.
  6. Implemented the below function in my AppDelegate.m

     - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
    

  7. Added the below code in my AppDelegate.m

    //Initialization
    [FBAppEvents activateApp];
    [FBSettings setClientToken:@"ca45a3a2133ae2f37ebd4d90408816e6"];
    
    //Function to check for deferred deep link and call the method with recieved url
    [FBSDKAppLinkUtility fetchDeferredAppLink:^(NSURL *url,NSError *error){
    if(url)
    [self application:nil openURL:url sourceApplication:nil annotation:nil];
    }];
    

Please let me know if i have missed something in fetching deferred deep link. Also, how can i test the same before publishing my iOS APP to appStore.

解决方案

I had reported the same facebook support and they said that above mentioned steps were correct in order to implement the deferred deep link functionality.

Also, the same can be tested as follows:

  1. Visit https://developers.facebook.com/tools/app-ads-helper

  2. Select your app and hit 'Submit'.

  3. At the bottom you will find 'Deep Link Tester' under Developer Tools.Hit 'Test Deep Link' and in the dialog you can enter your deep link to test.

  4. If you want to verify deferred links then check 'Send Deferred' in the dialog.

So, after doing this you need to uninstall the app(if already present) and then install again from the app store. The device in which you will be testing this should have facebook app installed and logged in with the account from which you had sent the "deferred deep link request" from app-ads helper.

Now when you open your app, you should bee able to see your deferred deep link functionality working.

The above steps worked for me.

这篇关于如何使用facebook延迟深度链接功能进行新安装,并在将iOS应用程序发布到appStore之前进行测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 00:42