How can i get canonical url from facebook graph api in android?

前端 未结 1 654
醉话见心
醉话见心 2021-01-17 01:48

Am trying to implement deep link on Facebook sharing in my android applcation. That deep link is only for mobile and not for webpage. So according to the facebook documentat

相关标签:
1条回答
  • 2021-01-17 02:35
    1. app_link_hosts is part of the actual graph path for the request, so don't change it, and just use it as is (/app/app_link_hosts is the full path).

    2. "Android App Link Object Example" is the name of the url you're creating. It's for your benefit only, and is not really used for anything, so you can put anything you'd like there (I would keep it a human readable string).

    3. "YOUR_APP_LINK_HOST_ID" is the result from the first curl command. The first curl command will return you a string ID, and you use that in the second command to get the canonical url (that you can use to share).

    0 讨论(0)
提交回复
热议问题